Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

argument passing  RSS feed

 
Lakshmi Anantharaman
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from with a JSF page how does one pass aruments to methods
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Sorry, I am not able to understand your question.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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 >
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!