[jboss-user] [JBoss Seam] - Re: How to pass param from inputText to s:link

knuwu do-not-reply at jboss.com
Fri Sep 28 04:41:21 EDT 2007


Hi jagr

Try using the rich faces ajax tags included in seam 1.2.1

in Class SomeBean


  | <h:inputText id="paramFromUser" value="#{someBean.paramFromUser}">
  |    <a4j:support event="onkeyup" ajaxSingle="true" reRender="myLink"/>
  | </h:inputText>
  | 
  | <s:link id="myLink" action="#{actions.doSomething}" value="#{messages.actions_doSomething}">
  |   <f:param name="param1" value="#{someBean.paramFromUser}"/>
  | </s:link> 
  | 

Every time the user is typing a character in the inputfield a ajax request is sended back to the server, the bean value is updated an the link element will be updated with the new bean value as a parameter.

Give it a try.

Greetings Ralph

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089593#4089593

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089593



More information about the jboss-user mailing list