• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

argument passing

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
from with a JSF page how does one pass aruments to methods
 
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are expecting something like : action="#{backingbean.myMethod(arg1)}" ... then unfortunately you can't.

What are you trying to do?
[ January 21, 2005: Message edited by: K Varun ]
 
Lakshmi Anantharaman
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the answer . Yes I am tryin gto condtruct a table say result table

getCatergories get Assignment for each catergory

Catergory 1
---------------
Assignment1
Assignment2
Assignment3

Catergory 2
---------------
Assignment4
Assignment5
Assignment6

Catergory 3
---------------
Assignment7
Assignment8
Assignment9

But I realised it is going to be tought I have have changed my page design and datastructure so as to use a datatable .

Can you give me any suggesstions ?
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I am not able to understand your question.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, I really don't understand either. Could you try and explain again what you are trying to do? To me your 2 posts look like 2 seperate questions.
 
Lakshmi Anantharaman
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I hope this will make my question clear

How does one pass arguments or set some data mangaedbean for furthur porocessing on the fly .

I am building a table of assignments and they are group by catergory. Si O have a list of catergory and can get assignment by catergory.

As a workaround I am how I can call the set api in a mangedbean without a submit or refresh .

Also it would be helpful to understand how to encode URL for a commandLink.

Thanks
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


How does one pass arguments or set some data mangaedbean for furthur porocessing on the fly .


You can use hidden param. JSF provides one component and or you can use HTML input typ=hidden


As a workaround I am how I can call the set api in a mangedbean without a submit or refresh .


Are you trying to call something on a server without a submit ? Howws that gona work


Also it would be helpful to understand how to encode URL for a commandLink.


what are you trying to do here?
 
Lakshmi Anantharaman
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a table with edit in each row

A B editrow
A B editrow
A B editrow

When I click the edit row how to I add value to hidden fields ? My sample javascript is not working

< h:commandLink action="editgrade" wheniclickevent="form.assessmentId.value="+#{asmt.assessmentId}+";"+"form.assessmentId.value ="+#{asmt.assessmentName}+";" >
< h utputText value="Edit"/ >
</h:commandLink >
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic