What do you mean, which static methods?

.xml is now supported btw. The only problem still left is what Juergen
noted: it is only possible currently to have a fixed set of
extensions.

Or... instead of getMarkupType being an instance method, we could make
it static and call it using introspection. That way we could support
any extension. It would not be possible anymore to have a dynamically
designated markup type, though I don't think that will ever be a
problem. Was that what you meant Phil? And others... what about this
idea?

Eelco


On 10/10/05, Phil Kulak <[EMAIL PROTECTED]> wrote:
> I just found this and would like to do the same, however, it looks
> like Page now has three static methods. Is there now a better way to
> do this, or can I just return null from those three methods?
>
> On 9/24/05, pepone pepone <[EMAIL PROTECTED]> wrote:
> > i open a bug with this at
> > https://sourceforge.net/tracker/index.php?func=detail&aid=1303553&group_id=119783&atid=684975
> >
> > On 9/24/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > > Hmmm,
> > >
> > >  You could file a bug report for this. I doubt that what you are currently
> > > experiencing (having to reference xxx.html instead of xxx.xml) is good
> > > behavior on wicket's part.
> > >
> > >  Martijn
> > >
> > >
> > >
> > > On 9/24/05, pepone pepone <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Thanks Johan
> > > > I subclas Page in XmlPage and orverride String getMarkupType() to
> > > > return "xml" and this is working for me. The only think that i feel a
> > > > bit confused is that when i want to create a link in other markup file
> > > > to the XmlPage i need to put href="XmlPage.html" and not
> > > > a="XmlPage.xml"
> > > >
> > > > I think that is nice to put XmlPage.xml because this is realy the markup
> > > file
> > > >
> > > > but Xml ouput is working well :D Thanks again
> > > >
> > > > On 9/24/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > > That was new to me. Neat!
> > > > >
> > > > > And you could also make it a resource in the fashion like I did with
> > > > > JasperReports integration.
> > > > >
> > > > > Eelco
> > > > >
> > > > >
> > > > > On 9/24/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > > > > Make youre own Page (extends from Page not WebPage) call it for
> > > example
> > > > > > XmlPage
> > > > > >  then override the
> > > > > >
> > > > > >  public String getMarkupType()
> > > > > >
> > > > > >  method, where you return "xml"
> > > > > >
> > > > > >  If you really need stuff from webpage you could override that one.
> > > > > >
> > > > > >  if you override getMarkupType youre content type is set right and 
> > > > > > the
> > > file
> > > > > > is loaded with a xml extentions.
> > > > > >  (this way we could also make WapPage with a wml extention)
> > > > > >
> > > > > >
> > > > > > On 9/23/05, pepone pepone <[EMAIL PROTECTED]> wrote:
> > > > > > > Hello i want to build a componente that create a RSS file with the
> > > > > > > latest changes of my wicket app
> > > > > > >
> > > > > > > what super class you recomend to use
> > > > > > >
> > > > > > > How write xml response
> > > > > > >
> > > > > > > any ideas are wellcome
> > > > > > >
> > > > > > > thanks
> > > > > > >
> > > > > > >
> > > > > > >
> > > -------------------------------------------------------
> > > > > > > SF.Net email is sponsored by:
> > > > > > > Tame your development challenges with Apache's Geronimo App 
> > > > > > > Server.
> > > > > > Download
> > > > > > > it for free - -and be entered to win a 42" plasma tv or your very
> > > own
> > > > > > > Sony(tm)PSP.  Click here to play:
> > > > > > http://sourceforge.net/geronimo.php
> > > > > > > _______________________________________________
> > > > > > > Wicket-user mailing list
> > > > > > > Wicket-user@lists.sourceforge.net
> > > > > > >
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > SF.Net email is sponsored by:
> > > > > Tame your development challenges with Apache's Geronimo App Server.
> > > Download
> > > > > it for free - -and be entered to win a 42" plasma tv or your very own
> > > > > Sony(tm)PSP.  Click here to play:
> > > http://sourceforge.net/geronimo.php
> > > > > _______________________________________________
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > SF.Net email is sponsored by:
> > > > Tame your development challenges with Apache's Geronimo App Server.
> > > Download
> > > > it for free - -and be entered to win a 42" plasma tv or your very own
> > > > Sony(tm)PSP.  Click here to play:
> > > http://sourceforge.net/geronimo.php
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App Server. Download
> > it for free - -and be entered to win a 42" plasma tv or your very own
> > Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to