read value of attributes from h:commandLink

java Germany
  • 14 years ago
    Hello,
    i would like to read value(firstdata) of attributes(id) from h:commandLink:
    my jsp:
    <h:commandLink id = "firstdata" immediate="true" action="#{data.setCriteria}" value="1">

    my Data.java (bean):



    public void setCriteria()
    {
    String data = getValueFromCommandLink()???//here should be called the value of "id" of commandLink
    }



    how can i do that?







Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The generation of random numbers is too important to be left to chance.” - Robert R. Coveyou