Skip to main content

[webtier] still trying

2 replies [Last post]
Anonymous

I am just trying some simple example, like:

to click in a link and reload another page with a URL
parameter........ and I want to print the value of the
parameter.........

I can debug and the value is being set.. but since it is stateless,
when the page get the parameter value, it always return null :(

----------- bean:
@Named("headlines")
@RequestScoped
public class HeadlineBean implements Serializable {
private static final long serialVersionUID =
PujAbstractEntity.serialVersionUID;

private String type;
public String getType() { return type; }
public void setType(String type) { this.type = type; }
}

----------- xhtml:

Prêmio Universitário Java

ppp -> #{headlines.type}

--
------------------------------------------
Felipe Gaúcho
10+ Java Programmer
CEJUG Senior Advisor

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Felipe Gaúcho

the page:

http://fgaucho.dyndns.org:8080/arena-jsf20/faces/headlines.xhtml?type=WH...

2009/12/24 Felipe Gaúcho :
> I am just trying some simple example, like:
>
> to click in a link and reload another page with a URL
> parameter........ and I want to print the value of the
> parameter.........
>
> I can debug and the value is being set.. but since it is stateless,
> when the page get the parameter value, it always return null :(
>
> ----------- bean:
> @Named("headlines")
> @RequestScoped
> public class HeadlineBean implements Serializable {
>        private static final long serialVersionUID =
> PujAbstractEntity.serialVersionUID;
>
>        private String type;
>        public String getType() { return type; }
>        public void setType(String type) { this.type = type; }
> }
>
> ----------- xhtml:
> >      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >        xmlns:f="http://java.sun.com/jsf/core"
>        xmlns:h="http://java.sun.com/jsf/html"
>        xmlns:ui="http://java.sun.com/jsf/facelets" xml:lang="en" lang="en"
>        xmlns:c="http://java.sun.com/jstl/core">
>
>
>
>
>        
>

>
>        
>                

Prêmio Universitário Java

>        
>        
>                

ppp -> #{headlines.type}

>        
>
>
>
>
>
>
>
>
> --
> ------------------------------------------
>   Felipe Gaúcho
>   10+ Java Programmer
>   CEJUG Senior Advisor
>

--
------------------------------------------
Felipe Gaúcho
10+ Java Programmer
CEJUG Senior Advisor

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Felipe Gaúcho

worked like that:






Prêmio Universitário Java


headlines.type = #{type}



2009/12/24 Felipe Gaúcho :
> the page:
>
> http://fgaucho.dyndns.org:8080/arena-jsf20/faces/headlines.xhtml?type=WH...
>
>
> 2009/12/24 Felipe Gaúcho :
>> I am just trying some simple example, like:
>>
>> to click in a link and reload another page with a URL
>> parameter........ and I want to print the value of the
>> parameter.........
>>
>> I can debug and the value is being set.. but since it is stateless,
>> when the page get the parameter value, it always return null :(
>>
>> ----------- bean:
>> @Named("headlines")
>> @RequestScoped
>> public class HeadlineBean implements Serializable {
>>        private static final long serialVersionUID =
>> PujAbstractEntity.serialVersionUID;
>>
>>        private String type;
>>        public String getType() { return type; }
>>        public void setType(String type) { this.type = type; }
>> }
>>
>> ----------- xhtml:
>> >>      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> >>        xmlns:f="http://java.sun.com/jsf/core"
>>        xmlns:h="http://java.sun.com/jsf/html"
>>        xmlns:ui="http://java.sun.com/jsf/facelets" xml:lang="en" lang="en"
>>        xmlns:c="http://java.sun.com/jstl/core">
>>
>>
>>
>>
>>        
>>

>>
>>        
>>                

Prêmio Universitário Java

>>        
>>        
>>                

ppp -> #{headlines.type}

>>        
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> ------------------------------------------
>>   Felipe Gaúcho
>>   10+ Java Programmer
>>   CEJUG Senior Advisor
>>
>
>
>
> --
> ------------------------------------------
>   Felipe Gaúcho
>   10+ Java Programmer
>   CEJUG Senior Advisor
>

--
------------------------------------------
Felipe Gaúcho
10+ Java Programmer
CEJUG Senior Advisor

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net