[Wicket-user] How to get Attribute in HttpSession in wicketApplication (part 2)?

2006-06-21 Thread JFC




Hey:
 
 
I've found a way to solve this problem:
 
---
 javax.servlet.http.HttpServletRequest httpRequest 
=       ((ServletWebRequest) 
RequestCycle.get().getRequest()).getHttpServletRequest();     
         HttpSession sessionStore = 
httpRequest.getSession();System.out.print 
( "UserID: " + sessionStore.getAttribute("userid"));  
  System.out.print ( "sessionid: " + 
sessionStore.getAttribute("sessionid"));
-
Is this safe?
 
 I don't know why my subject "How to get Attribute 
in HttpSession in wicketApplication" can't be replied by using the 
button on the 
  page http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg15266.html, 
could anyone please tell me did I make
any mistake? (I send 
to the email: wicket-user@lists.sourceforge.net) , thx 
very much!
 
            
                
                
    JFC Hsieh
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] VOTE: how should localized attributes work?

2006-08-03 Thread JFC



2

  - Original Message - 
  From: 
  Dirk 
  Markert 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Friday, August 04, 2006 12:32 
  PM
  Subject: Re: [Wicket-user] VOTE: how 
  should localized attributes work?
  2 [x]
  2006/8/3, Eelco Hillenius <[EMAIL PROTECTED]>:
  For 
localized attributes - so that you don't have to attach 
attributemodifiers all over the place for that sole reason - we have 
twoalternative approaches in mind. For end-users this would either 
looklike:1) which is compact, or2) 
 which works better if you want to 
keep your components preview-able.What do you prefer (vote open to 
anyone that want to join in)?1 [  ]2 
[  ]Eelco(I have to think about what I like a 
bit more myself, but currently I lean towards 2 as I think it is cleaner 
and supports 
preview-ability)-Take 
Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net 's 
Techsay panel and you'll get the chance to share youropinions on IT 
& business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user 
mailing listWicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  

  -Take 
  Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's 
  Techsay panel and you'll get the chance to share youropinions on IT & 
  business topics through brief surveys -- and earn 
  cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
  
  

  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] something strange about FormComponent.getInputAsArray()

2007-04-02 Thread JFC
Sorry to bother, but I found a strange thing, I don't know if I misunderstand 
the usage of "getInputAsArray()". Here is my case:


HTML code:

  
   

 Ims Ports


 

   

JAVA Code:

 public String[] getInputAsArray()//This, Usually is size==1. Only when 
multiple choices.
   {
String[] ans = super.getInputAsArray();
if(ans != null)
{
 String temp = ans[0];
 ans[0] = String.valueOf(codingUtil.encodeToInteger(temp));
 //ans[0] = String.valueOf(codingUtil.encodeToInteger(ans[0]));
}
return ans;
   }

--

When I input "4-5" in the html form, I got "0" from "super.getInputAsArray()"
But if I change JAVA codes to 

public String[] getInputAsArray()//This, Usually is size==1. Only when multiple 
choices.
   {
String[] ans = super.getInputAsArray();
if(ans != null)
{
 //ans[0] = String.valueOf(codingUtil.encodeToInteger(ans[0]));
}
return ans;
   }

I could got the correct value "4-5". I tried it twice. Could anybody help me 
about this? Thanks a lot !!


    by: JFC

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] something strange aboutFormComponent.getInputAsArray()

2007-04-10 Thread JFC
Thanks for replying so soon. ^^

I'm using wicket-1.2.3.
I used to use getInput to get userInput of "Textfield", but this time I had 
to transform input to another format, so I wanted to override getInput().

However, I saw the comments in the wicket source codes, which said anyone 
who want to override this method should overwrite getInputAsArray() instead.
So I did that, and the bug happened.

I think this may be a strange problem and hard to reproduce, so I use 
another way for avoiding this bug to achieve my goal.

Thanks for help again. :)

JFC Hsieh


- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, April 05, 2007 8:26 AM
Subject: Re: [Wicket-user] something strange 
aboutFormComponent.getInputAsArray()


Which version are you using? And why wouldn't you be using models and
components rather then getInputAsArray, which is basically a framework
function?

Eelco


On 4/2/07, JFC <[EMAIL PROTECTED]> wrote:
>
>
> Sorry to bother, but I found a strange thing, I don't know if I
> misunderstand the usage of "getInputAsArray()". Here is my case:
>
>
> HTML code:
>
>   
>
> 
>  Ims Ports
> 
> 
>  
> 
>
>
> JAVA Code:
>
>  public String[] getInputAsArray()//This, Usually is size==1. Only when
> multiple choices.
>{
> String[] ans = super.getInputAsArray();
> if(ans != null)
> {
>  String temp = ans[0];
>  ans[0] = String.valueOf(codingUtil.encodeToInteger(temp));
>  //ans[0] = String.valueOf(codingUtil.encodeToInteger(ans[0]));
> }
> return ans;
>}
>
> --
>
> When I input "4-5" in the html form, I got "0" from
> "super.getInputAsArray()"
> But if I change JAVA codes to
>
> public String[] getInputAsArray()//This, Usually is size==1. Only when
> multiple choices.
>{
> String[] ans = super.getInputAsArray();
> if(ans != null)
> {
>  //ans[0] = String.valueOf(codingUtil.encodeToInteger(ans[0]));
> }
> return ans;
>}
>
> I could got the correct value "4-5". I tried it twice. Could anybody help 
> me
> about this? Thanks a lot !!
>
>
>
> by: JFC
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>






-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV





___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Who knows what happen to "wicket Library" ?

2006-11-26 Thread JFC
http://www.wicket-library.com/

It seems this website is crashed? 


JFC Hsieh


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user