Re: [Wicket-user] Default Locale not working

2006-05-12 Thread Eelco Hillenius

So yeah, that's exactly my point. We should not have had that setting
in the first place. The fact that you can override getLocale in a
custom session object gives means you can employ any scheme you want,
including returning a default one (request headers, cookies) while a
user is not logged on, and when the user is logged on, return that
one.

AND as I stated, it is just wrong to have that setting as we can't
guarantee it. If you set it in your application but override getLocale
in your session, the whole setting is meaningless.

So: I propose to get rid of the setting and put up a FAQ entry in the
WIKI or something.

Eelco



On 5/12/06, Bruno Borges [EMAIL PROTECTED] wrote:

Just one question:

How to authenticate an user and right after that create a session with a
Locale coming from the... database, for example? Remembering that the
ISessionFactory is called from the (Custom)WebApplication that has no
knowledge about any request, login form... anything.

I think that, the way to set up a default Locale only in the time the
Session object is created, it's not good, because sometimes the Session must
already exist while the User hasn't authenticated yet. If you guys think in
code this feature like the way it's been proposed, there will be no way to
inform the ISessionFactory about some things like User info at logon time.

Am I wrong?


On 5/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

 I don't know. That seems to be the original idea of the default
locale, though it never worked. Personally, I don't think such an
option is that great. I would prefer letting you override the session
object - you probably will do that anyway when you have to deal with
things like users etc, and override the getLocale method. That's way
more flexible too, as in that method you can check out the clients
preferred locales, look up database settings and anything else you
might want to do.

Having just one way of doing things attracts more to me, and the
convenience win is minimal for the corner case of fixing a locale for
an application.

Eelco


On 5/11/06, Bruno Borges  [EMAIL PROTECTED] wrote:
 Wouldn't be useful to have a method that sets a Locale to be used, and if
 this options is setted, Wicket should ignore user's locale?


 On 5/11/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  no, the default locale is used when we cannot figure out what the user's
 local is afaik. since the browser is sending a locale that will be used.
 
 
  -Igor
 
 
 
 
  On 5/11/06, Bruno Borges [EMAIL PROTECTED] wrote:
   
   Shouldn't these calls override any locale the user is sending at the
 request (from the browser)?
  
   getApplicationSettings().setDefaultLocale(new
 Locale(pt, BR));
   getResourceSettings().setDefaultLocale(new
 Locale(pt, BR));
  
   I still get english messages, that comes from Application.properties.
My
 tought was that, overriding the default locale, I would get portuguese
 messages.
  
   Regards
  
  
   --
   Bruno Borges
   [EMAIL PROTECTED]
   Sun Certified Java Programmer for 1.4
   Sun Certified Web Component Developer for 1.4
 
 




 --
 Bruno Borges
 [EMAIL PROTECTED]
 Sun Certified Java Programmer for 1.4
 Sun Certified Web Component Developer for 1.4


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--

Bruno Borges
[EMAIL PROTECTED]
Sun Certified Java Programmer for 1.4
Sun Certified Web Component Developer for 1.4



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] SPAM: testing

2006-05-12 Thread Alvar Lumberg

Hello, this is a test e-mail. I'm sending it because two previous
messages didn't get through. Nothing to see here, press delete.
Sorry.


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax Panel Include

2006-05-12 Thread Samyem Tuladhar
When I include a panel into a page after the page has been loaded through ajax, I do not get the content defined in the wicket:head. How do I access the head of the panel so that I can dynamically load them through ajax once the page has been on the browser?
Samye


Re: [Wicket-user] SPAM: testing

2006-05-12 Thread Johan Compagner
worksOn 5/12/06, Alvar Lumberg [EMAIL PROTECTED] wrote:
Hello, this is a test e-mail. I'm sending it because two previousmessages didn't get through. Nothing to see here, press delete.Sorry.---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] SPAM: testing

2006-05-12 Thread Eelco Hillenius

Well, this one worked :)

On 5/12/06, Alvar Lumberg [EMAIL PROTECTED] wrote:

Hello, this is a test e-mail. I'm sending it because two previous
messages didn't get through. Nothing to see here, press delete.
Sorry.


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Panel Include

2006-05-12 Thread Eelco Hillenius

Header contributions are a problem currently with AJAX. Please look
for the discussion we had about this earlier this week.

Eelco


On 5/12/06, Samyem Tuladhar [EMAIL PROTECTED] wrote:

When I include a panel into a page after the page has been loaded through
ajax, I do not get the content defined in the wicket:head. How do I access
the head of the panel so that I can dynamically load them through ajax
once the page has been on the browser?

Samye




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket in action?

2006-05-12 Thread Ali Zaid

Yah Guys ;), but no hyucks, it suppose to help get rid of them :)

On 5/12/06, Vincent Jenks [EMAIL PROTECTED] wrote:

He'll definitely internalize every word.  Really absorbing the
contents...hyuck hyuck.

Alright, I'm done now.

On 5/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I guess he wants to digest it fully.

 Eelco

 On 5/11/06, Nick Heudecker [EMAIL PROTECTED] wrote:
  Won't that make it hard to read?
 
 
  On 5/11/06, Ali Zaid [EMAIL PROTECTED] wrote:
   hay :) when do we expect this? I want to eat this book!!! :)
  
  
 
 


 ---
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Regards, Ali
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Default Locale not working

2006-05-12 Thread Bruno Borges
Eelco, the problem I listed in my previous email was that it is kind of impossible to create a Session object passing some User info to ISessionFactory.Let's say we have something like this:class CustomForm ... {
 void onSubmit() { User u = (User) getModelObject(); SomeServiceFromIoC service = ... service.authenticate(u); ... // ok, user is authenticated and now can have access. lets set his session to his Locale
 Locale l = u.getUserLocale(); getSession().setFixedLocale(l); getSession().setAttribute(loggedUser, u); }If the API is going to not provide a public way to override current Session's locale, this kind of code will never be possible. And somewhere in the RequestCycle, this Locale setting must be checked before load any ResourceBundle.
  On 5/12/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
So yeah, that's exactly my point. We should not have had that settingin the first place. The fact that you can override getLocale in acustom session object gives means you can employ any scheme you want,including returning a default one (request headers, cookies) while a
user is not logged on, and when the user is logged on, return thatone.AND as I stated, it is just wrong to have that setting as we can'tguarantee it. If you set it in your application but override getLocale
in your session, the whole setting is meaningless.So: I propose to get rid of the setting and put up a FAQ entry in theWIKI or something.EelcoOn 5/12/06, Bruno Borges 
[EMAIL PROTECTED] wrote: Just one question: How to authenticate an user and right after that create a session with a Locale coming from the... database, for example? Remembering that the
 ISessionFactory is called from the (Custom)WebApplication that has no knowledge about any request, login form... anything. I think that, the way to set up a default Locale only in the time the
 Session object is created, it's not good, because sometimes the Session must already exist while the User hasn't authenticated yet. If you guys think in code this feature like the way it's been proposed, there will be no way to
 inform the ISessionFactory about some things like User info at logon time. Am I wrong? On 5/11/06, Eelco Hillenius [EMAIL PROTECTED]
 wrote: I don't know. That seems to be the original idea of the default locale, though it never worked. Personally, I don't think such an option is that great. I would prefer letting you override the session
 object - you probably will do that anyway when you have to deal with things like users etc, and override the getLocale method. That's way more flexible too, as in that method you can check out the clients
 preferred locales, look up database settings and anything else you might want to do. Having just one way of doing things attracts more to me, and the convenience win is minimal for the corner case of fixing a locale for
 an application. Eelco On 5/11/06, Bruno Borges  [EMAIL PROTECTED] wrote:  Wouldn't be useful to have a method that sets a Locale to be used, and if
  this options is setted, Wicket should ignore user's locale?On 5/11/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 no, the default locale is used when we cannot figure out what the user's  local is afaik. since the browser is sending a locale that will be used.
   -Igor   On 5/11/06, Bruno Borges [EMAIL PROTECTED] wrote:
  Shouldn't these calls override any locale the user is sending at the  request (from the browser)?   getApplicationSettings().setDefaultLocale(new
  Locale(pt, BR));getResourceSettings().setDefaultLocale(new  Locale(pt, BR));   I still get english messages, that comes from 
Application.properties. My  tought was that, overriding the default locale, I would get portuguese  messages.   Regards   
   --Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4  --  Bruno Borges  
[EMAIL PROTECTED]  Sun Certified Java Programmer for 1.4  Sun Certified Web Component Developer for 1.4 --- Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user --
 Bruno Borges [EMAIL PROTECTED] Sun Certified Java Programmer for 1.4 Sun Certified Web Component Developer for 1.4---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

Re: [Wicket-user] Default Locale not working

2006-05-12 Thread Johan Compagner
The locale is FIXED in the session when it is set.It is only initialized when the session is created.so session.setLocale(userLocale) works fine.And i would make my own Session so that you don't have to do setAttribute() but just call: setUser(user)
johanOn 5/12/06, Bruno Borges [EMAIL PROTECTED] wrote:
Eelco, the problem I listed in my previous email was that it is kind of impossible to create a Session object passing some User info to ISessionFactory.Let's say we have something like this:class CustomForm ... {
 void onSubmit() { User u = (User) getModelObject(); SomeServiceFromIoC service = ... service.authenticate(u); ... // ok, user is authenticated and now can have access. lets set his session to his Locale
 Locale l = u.getUserLocale(); getSession().setFixedLocale(l); getSession().setAttribute(loggedUser, u); }If the API is going to not provide a public way to override current Session's locale, this kind of code will never be possible. And somewhere in the RequestCycle, this Locale setting must be checked before load any ResourceBundle.
  On 5/12/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote:
So yeah, that's exactly my point. We should not have had that settingin the first place. The fact that you can override getLocale in acustom session object gives means you can employ any scheme you want,including returning a default one (request headers, cookies) while a
user is not logged on, and when the user is logged on, return thatone.AND as I stated, it is just wrong to have that setting as we can'tguarantee it. If you set it in your application but override getLocale
in your session, the whole setting is meaningless.So: I propose to get rid of the setting and put up a FAQ entry in theWIKI or something.EelcoOn 5/12/06, Bruno Borges 

[EMAIL PROTECTED] wrote: Just one question: How to authenticate an user and right after that create a session with a Locale coming from the... database, for example? Remembering that the
 ISessionFactory is called from the (Custom)WebApplication that has no knowledge about any request, login form... anything. I think that, the way to set up a default Locale only in the time the
 Session object is created, it's not good, because sometimes the Session must already exist while the User hasn't authenticated yet. If you guys think in code this feature like the way it's been proposed, there will be no way to
 inform the ISessionFactory about some things like User info at logon time. Am I wrong? On 5/11/06, Eelco Hillenius 
[EMAIL PROTECTED]
 wrote: I don't know. That seems to be the original idea of the default locale, though it never worked. Personally, I don't think such an option is that great. I would prefer letting you override the session
 object - you probably will do that anyway when you have to deal with things like users etc, and override the getLocale method. That's way more flexible too, as in that method you can check out the clients
 preferred locales, look up database settings and anything else you might want to do. Having just one way of doing things attracts more to me, and the convenience win is minimal for the corner case of fixing a locale for
 an application. Eelco On 5/11/06, Bruno Borges  [EMAIL PROTECTED]
 wrote:  Wouldn't be useful to have a method that sets a Locale to be used, and if
  this options is setted, Wicket should ignore user's locale?On 5/11/06, Igor Vaynberg  
[EMAIL PROTECTED] wrote:
 no, the default locale is used when we cannot figure out what the user's  local is afaik. since the browser is sending a locale that will be used.
   -Igor   On 5/11/06, Bruno Borges 
[EMAIL PROTECTED] wrote:
  Shouldn't these calls override any locale the user is sending at the  request (from the browser)?   getApplicationSettings().setDefaultLocale(new
  Locale(pt, BR));getResourceSettings().setDefaultLocale(new  Locale(pt, BR));   I still get english messages, that comes from 
Application.properties. My  tought was that, overriding the default locale, I would get portuguese  messages.   Regards   

   --Bruno Borges[EMAIL PROTECTED]
Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4  --  Bruno Borges  

[EMAIL PROTECTED]  Sun Certified Java Programmer for 1.4  Sun Certified Web Component Developer for 1.4 ---
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 

http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list 

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
 --
 Bruno Borges [EMAIL PROTECTED] Sun Certified Java Programmer for 1.4 Sun Certified Web Component Developer for 

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-12 Thread Bruno Borges
I just had an idea: how about require the programmer to inform the current page instance to register all Ajax components he pretends to use, _before_ using them? This way the Ajax component could return to the page everything it's going to need and then the page can load .js, .css, whatever in the head section.
Like this: class SomePage extends WebPage() { constructor {
 registerComponentHead(((Component) new DatePicker()).getContributedHead());
 AjaxLink a = new AjaxLink() { event { Panel p = new SomePanelWithDatePicker();
  // replace and add panel 'p' }
 } }And at Component class, we could encapsulate Head in another class, and make that method 
getContributedHead returning Head[].A Head instance must have information about _javascript_s and other resources/meta info, that can only be useful at head section.
I know this sounds a little strange, because the possibility of adding panels through reflection (coming from the database maybe?) but the programmer must be careful anyway. But I think that this is the mostly clean way. :)
What you guys think?On 5/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
well, my concern is to make this automatic.for example:when a component contributes scriptfunc whatever() { }/script through wicket:head that contribution needs to magically merge.

or when a component contributes stylea { color:red; }/style that also has to magically get mergedbut from what i have seen there is no way to do that, you first have to transform these kinds of outputs into a more dynamic version that can then be merged using _javascript_, etc...which is a huge pain.
im not sure how to proceed at all.-IgorOn 5/9/06, 
Rüdiger Schulz [EMAIL PROTECTED] wrote:
Hello Igornot sure how iframes behave here, but it is possible to call_javascript_ functions in one frame, which is defined in another frame,
which then again can do anything with the calling frame. Done this acouple of years ago (when frames where still en vogue ;), but as itturned out, nothing like that will be necessary to solve our problemhere :-)
--greetings from Berlin,Rüdiger SchulzIgor Vaynberg wrote on 04.05.2006 at 19:28: i guess there can be a hidden iframe, but then the loaded js will not be part of the page because frames are isolated, no?
 -Igor On 5/4/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: in that case i dont see how you can ever make this work in xhtml
 unless you refresh the entire page.
 A twisted solution using an invisible frame loading only JS comes to mind ;-) - Rüdiger --- Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 

http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-- Bruno BorgesSumma Technologies


Re: [Wicket-user] Wicket-spring-example 1.2rc3

2006-05-12 Thread middledot

Hi,
with the help of this list I was able to make spring examples work.
Dowload all of the 1.2-rc3 release and install it in Eclipse.
add src/main/resources folder to the buildpath in you spring project
Run it from within Eclipse
Les
PS. Let me know if you need more specific instructions

--
View this message in context: 
http://www.nabble.com/Wicket-spring-example-1.2rc3-t1605170.html#a4360204
Sent from the Wicket - User forum at Nabble.com.



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] selecting MarkupStream

2006-05-12 Thread Aaron Hiniker




Hi, I'm overriding newMarkupResourceStream(Class aClass) but I am still getting a markup not found error in my logs and even with DEBUG on there are no list of files that it is trying (probably because I am overriding the default functionality). This method below worked fine in beta3, but does not work fine in rc1, rc3-- did anything change in regards to markup streams since then? here is the relevant code:


 @Override
 public IResourceStream newMarkupResourceStream(Class aClass)
 {
 return getMailMarkupStream( mailType );
 } 

 
 public IResourceStream getMailMarkupStream( MailType type )
 {

 if ( type == MailType.Html )
 {
 return PackageResource.get( getClass(), getClass().getSimpleName() + .html ).getResourceStream();
 }
 if ( type == MailType.Text )
 {
 return PackageResource.get( getClass(), getClass().getSimpleName() + .txt ).getResourceStream();
 }

 return null;
 }

I would like to select a different stream based on the 'type' variable.. is this valid? or do I have to use variations?

Aaron











[Wicket-user] Estonian translation for Application.properties.. and more

2006-05-12 Thread Alvar Lumberg

Hello,


perhaps it would be more suited for devel list, but since I'm not one
of the developers..

Anyway, there seems to be a typo in EVERY Application.properties file
of 1.2-rc3:

---8--8--8--8--8---
StringValidator.minimum='${input}' must be at least ${mimimum} chars.
---8--8--8--8--8---

${miMimum} :) Although I haven't been around long enough to tell a
well-planned feature from a nasty bug I dared to point it out anyway..
;)


Alvar


Application_et.properties
Description: Binary data


Re: [Wicket-user] selecting MarkupStream

2006-05-12 Thread Johan Compagner
one is txt?is that file still valid markup? That we can parse?Or doesn't it contain anything? does the page not have wicket components what so ever.I guess that method should still work fine. Is the getMailMarkup really returning something?
johan]On 5/12/06, Aaron Hiniker [EMAIL PROTECTED] wrote:



  
  


Hi, I'm overriding newMarkupResourceStream(Class aClass) but I am still getting a markup not found error in my logs and even with DEBUG on there are no list of files that it is trying (probably because I am overriding the default functionality). This method below worked fine in beta3, but does not work fine in rc1, rc3-- did anything change in regards to markup streams since then? here is the relevant code:


 @Override public IResourceStream newMarkupResourceStream(Class aClass) { return getMailMarkupStream( mailType ); }   public IResourceStream getMailMarkupStream( MailType type )
 { if ( type == MailType.Html ) { return PackageResource.get( getClass(), getClass().getSimpleName() + .html ).getResourceStream(); } if ( type == 
MailType.Text ) { return PackageResource.get( getClass(), getClass().getSimpleName() + .txt ).getResourceStream(); } return null; }I would like to select a different stream based on the 'type' variable.. is this valid? or do I have to use variations?
Aaron










Re: [Wicket-user] selecting MarkupStream

2006-05-12 Thread Johan Compagner
and yes variation could be used for this.On 5/12/06, Johan Compagner [EMAIL PROTECTED] wrote:
one is txt?is that file still valid markup? That we can parse?Or doesn't it contain anything? does the page not have wicket components what so ever.
I guess that method should still work fine. Is the getMailMarkup really returning something?
johan]On 5/12/06, Aaron Hiniker 
[EMAIL PROTECTED] wrote:



  
  


Hi, I'm overriding newMarkupResourceStream(Class aClass) but I am still getting a markup not found error in my logs and even with DEBUG on there are no list of files that it is trying (probably because I am overriding the default functionality). This method below worked fine in beta3, but does not work fine in rc1, rc3-- did anything change in regards to markup streams since then? here is the relevant code:


 @Override public IResourceStream newMarkupResourceStream(Class aClass) { return getMailMarkupStream( mailType ); }   public IResourceStream getMailMarkupStream( MailType type )
 { if ( type == MailType.Html ) { return PackageResource.get( getClass(), getClass().getSimpleName() + .html ).getResourceStream(); } if ( type == 
MailType.Text ) { return PackageResource.get( getClass(), getClass().getSimpleName() + .txt ).getResourceStream(); } return null; }I would like to select a different stream based on the 'type' variable.. is this valid? or do I have to use variations?
Aaron