You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by msalman <mo...@yahoo.com> on 2010/05/28 07:02:34 UTC
custom html page
Hi,
Is it possible for a Page to have to have customized html files depending on
certain parameter (user, customer, etc)? I want to allow users to for a
certain page to be able to provide their own html file for that page or
panel. So depending on the user or customer id I can pick up the right html
file and use that.
I tried to do this in the my ResourceStreamLocator extension class but I
can't get the session object there. I guess that is the place to set the
html location for the application.
I also found this code on the web. The problem with it is that the
markupStream object passed in is null.
@Override
protected void onRender(MarkupStream markupStream)
{
markupStream.next();
try
{
WebRequestCycle cycle = (WebRequestCycle)RequestCycle.get();
ServletRequest request =
cycle.getWebRequest().getHttpServletRequest();
ServletResponse response =
cycle.getWebResponse().getHttpServletResponse();
ServletContext context =
((WebApplication)getApplication()).getServletContext();
RequestDispatcher rd =
context.getRequestDispatcher("/com/michni/wicket/....../specificsupplier_custom.html");
rd.include(request, response);
//context.getRequestDispatcher("/" + getId() +
".html").include(request, response);
}
catch (Exception e)
{
throw new WicketRuntimeException(e);
}
}
Any ideas or suggestions please?
Thanks,
-Mohammad
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-html-page-tp2234086p2234086.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: custom html page
Posted by msalman <mo...@yahoo.com>.
Hi Martin,
Yes, you are very right about that.
Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-html-page-tp2234086p2235861.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: custom html page
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hmm.. I wouldn't use string constants like that... use Class.getName() instead.
**
Martin
2010/5/28 msalman <mo...@yahoo.com>:
>
> Martin,
>
> Thanks for your response.
>
> I did try ((CastToYourSession) Session.get()) and that part works. I wanted
> to do something as following:
>
>
> public class MyOwnStreamLocator extends ResourceStreamLocator
> {
>
> //protected
>
> protected App app;
>
>
>
> public MyOwnStreamLocator(App app)
> {
> this.app = app;
> }
>
>
> public IResourceStream locate(final Class clazz, final String path)
> {
> if
> (clazz.getName().compareTo("com.michni.wicket.request.search.specificsupplier.PageSpcificSupplierSearchRequest")==0
> )
> {
> UserSession session = (UserSession)Session.get();
>
> Supplier supplier = session.getSpecificSupplier();
>
> if (supplier.getId() == 2)
> {
> String path2 = "PageSpcificSupplierSearchRequest_custom.html";
>
> IResourceStream located = super.locate(clazz, trimFolders(path2));
>
> if (located != null)
> {
> return located;
> }
> }
> }
>
> IResourceStream located = super.locate(clazz, trimFolders(path));
>
> if (located != null)
> {
> return located;
> }
> located = super.locate(clazz, path);
>
> return located;
> }
>
>
>
> But I have found that the locate method for each Page class is called only
> once and so what ever html file is set for a Page once is used all the time.
>
> Is there a way to set the html file location in the Page class? So when
> ever that page is constructed the right custom html file is picked. I have
> a feeling that the key lies in the MarkupStream but I don't know how to use
> it.
>
>
> Thanks.
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-html-page-tp2234086p2234882.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: custom html page
Posted by msalman <mo...@yahoo.com>.
Martin,
Thanks for your response.
I did try ((CastToYourSession) Session.get()) and that part works. I wanted
to do something as following:
public class MyOwnStreamLocator extends ResourceStreamLocator
{
//protected
protected App app;
public MyOwnStreamLocator(App app)
{
this.app = app;
}
public IResourceStream locate(final Class clazz, final String path)
{
if
(clazz.getName().compareTo("com.michni.wicket.request.search.specificsupplier.PageSpcificSupplierSearchRequest")==0
)
{
UserSession session = (UserSession)Session.get();
Supplier supplier = session.getSpecificSupplier();
if (supplier.getId() == 2)
{
String path2 = "PageSpcificSupplierSearchRequest_custom.html";
IResourceStream located = super.locate(clazz, trimFolders(path2));
if (located != null)
{
return located;
}
}
}
IResourceStream located = super.locate(clazz, trimFolders(path));
if (located != null)
{
return located;
}
located = super.locate(clazz, path);
return located;
}
But I have found that the locate method for each Page class is called only
once and so what ever html file is set for a Page once is used all the time.
Is there a way to set the html file location in the Page class? So when
ever that page is constructed the right custom html file is picked. I have
a feeling that the key lies in the MarkupStream but I don't know how to use
it.
Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-html-page-tp2234086p2234882.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Re: RE: Rich Text Editors and Wicket
Posted by Chris Colman <ch...@stepaheadsoftware.com>.
I looked at xinha before (and others) but the one killer feature of
FckEditor that our application can't live without is the ability to
integrate an image chooser (even if only filenames and directories are
displayed) that displays a collection of image filenames and directories
on the server (ie., images already uploaded, not browsing the client's
PC) via a 'image collection' provider (implementation of a special Java
FckEditor interface).
I also like the ability to 'Right click' on objects in FckEditor and
choose a variety of options. Not many others seem to support right click
options.
Also FckEditor brings up JavaScript popup windows (nice!) to edit
properties instead of full strength browser popup windows with the big
chunky borders and title (yuck!)
>-----Original Message-----
>From: ralf.eichinger@pixotec.de [mailto:ralf.eichinger@pixotec.de]
>Sent: Tuesday, 1 June 2010 5:40 PM
>To: users@wicket.apache.org
>Subject: Re: Re: RE: Rich Text Editors and Wicket
>
>have a look at the powerful xinha editor (http://www.xinha.org/).
>
>A Wicket integration can be found here:
>http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: RE: RE: Re: RE: Rich Text Editors and Wicket
Posted by Chris Colman <ch...@stepaheadsoftware.com>.
Will do if I can find it.
Chris
>-----Original Message-----
>From: wicketyan [mailto:wicketyan@gmail.com]
>Sent: Wednesday, 2 June 2010 11:43 PM
>To: users
>Subject: Re: RE: RE: Re: RE: Rich Text Editors and Wicket
>
>Could you tell me when you get it ?I also want to use fckeditor.
>
>
>2010-06-02
>
>
>
>wicketyan
>
>
>
>发件人: Chris Colman
>发送时间: 2010-06-02 19:58:19
>收件人: users@wicket.apache.org
>抄送:
>主题: RE: RE: Re: RE: Rich Text Editors and Wicket
>
>I haven't found a wicket integration for FckEditor yet but I'm still
>looking.
>I used to use TinyMCE but it had a few problems, including no ability (in
>the open source version at least) to integrate image selection from a
>server based repository of images. It also wasn't as powerful when it came
>to letting the user specify styling options for each element.
>> -----Original Message-----
>> From: wicketyan [mailto:wicketyan@gmail.com]
>> Sent: Wednesday, 2 June 2010 9:38 PM
>> To: users
>> Subject: Re: RE: Re: RE: Rich Text Editors and Wicket
>>
>> yes ,I aggree with you. I think rich text editors can simplely divided
>> into two categories ,heavy or light one.I just need a light one such as
>> nicedit or xheditor,which using a popup fileupload button is very fit
>for
>> people not good at computer.Displaying image from server is fit for
>> website administer system.It looks like tinymce already have this
>> fuction,but I don't know whether wicket had integrated it .Is fckeditor
>> has a wicket integration?
>>
>>
>> 2010-06-02
>>
>>
>>
>> wicketyan
>>
>>
>>
>> 发件人: Chris Colman
>> 发送时间: 2010-06-02 16:31:53
>> 收件人: users@wicket.apache.org
>> 抄送:
>> 主题: RE: Re: RE: Rich Text Editors and Wicket
>>
>> I looked at xinha before (and others) but the one killer feature of
>> FckEditor that our application can't live without is the ability to
>> integrate an image chooser (even if only filenames and directories are
>> displayed) that displays a collection of image filenames and directories
>> on the server (ie., images already uploaded, not browsing the client's
>> PC) via a 'image collection' provider (implementation of a special Java
>> FckEditor interface).
>> I also like the ability to 'Right click' on objects in FckEditor and
>> choose a variety of options. Not many others seem to support right click
>> options.
>> Also FckEditor brings up JavaScript popup windows (nice!) to edit
>> properties instead of full strength browser popup windows with the big
>> chunky borders and title (yuck!)
>> >-----Original Message-----
>> >From: ralf.eichinger@pixotec.de [mailto:ralf.eichinger@pixotec.de]
>> >Sent: Tuesday, 1 June 2010 5:40 PM
>> >To: users@wicket.apache.org
>> >Subject: Re: Re: RE: Rich Text Editors and Wicket
>> >
>> >have a look at the powerful xinha editor (http://www.xinha.org/).
>> >
>> >A Wicket integration can be found here:
>> >http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/
>> >
>> >
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >For additional commands, e-mail: users-help@wicket.apache.org
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: RE: RE: Re: RE: Rich Text Editors and Wicket
Posted by wicketyan <wi...@gmail.com>.
Could you tell me when you get it ?I also want to use fckeditor.
2010-06-02
wicketyan
发件人: Chris Colman
发送时间: 2010-06-02 19:58:19
收件人: users@wicket.apache.org
抄送:
主题: RE: RE: Re: RE: Rich Text Editors and Wicket
I haven't found a wicket integration for FckEditor yet but I'm still looking.
I used to use TinyMCE but it had a few problems, including no ability (in the open source version at least) to integrate image selection from a server based repository of images. It also wasn't as powerful when it came to letting the user specify styling options for each element.
> -----Original Message-----
> From: wicketyan [mailto:wicketyan@gmail.com]
> Sent: Wednesday, 2 June 2010 9:38 PM
> To: users
> Subject: Re: RE: Re: RE: Rich Text Editors and Wicket
>
> yes ,I aggree with you. I think rich text editors can simplely divided
> into two categories ,heavy or light one.I just need a light one such as
> nicedit or xheditor,which using a popup fileupload button is very fit for
> people not good at computer.Displaying image from server is fit for
> website administer system.It looks like tinymce already have this
> fuction,but I don't know whether wicket had integrated it .Is fckeditor
> has a wicket integration?
>
>
> 2010-06-02
>
>
>
> wicketyan
>
>
>
> 发件人: Chris Colman
> 发送时间: 2010-06-02 16:31:53
> 收件人: users@wicket.apache.org
> 抄送:
> 主题: RE: Re: RE: Rich Text Editors and Wicket
>
> I looked at xinha before (and others) but the one killer feature of
> FckEditor that our application can't live without is the ability to
> integrate an image chooser (even if only filenames and directories are
> displayed) that displays a collection of image filenames and directories
> on the server (ie., images already uploaded, not browsing the client's
> PC) via a 'image collection' provider (implementation of a special Java
> FckEditor interface).
> I also like the ability to 'Right click' on objects in FckEditor and
> choose a variety of options. Not many others seem to support right click
> options.
> Also FckEditor brings up JavaScript popup windows (nice!) to edit
> properties instead of full strength browser popup windows with the big
> chunky borders and title (yuck!)
> >-----Original Message-----
> >From: ralf.eichinger@pixotec.de [mailto:ralf.eichinger@pixotec.de]
> >Sent: Tuesday, 1 June 2010 5:40 PM
> >To: users@wicket.apache.org
> >Subject: Re: Re: RE: Rich Text Editors and Wicket
> >
> >have a look at the powerful xinha editor (http://www.xinha.org/).
> >
> >A Wicket integration can be found here:
> >http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >For additional commands, e-mail: users-help@wicket.apache.org
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: RE: Re: RE: Rich Text Editors and Wicket
Posted by Chris Colman <ch...@stepaheadsoftware.com>.
I haven't found a wicket integration for FckEditor yet but I'm still looking.
I used to use TinyMCE but it had a few problems, including no ability (in the open source version at least) to integrate image selection from a server based repository of images. It also wasn't as powerful when it came to letting the user specify styling options for each element.
> -----Original Message-----
> From: wicketyan [mailto:wicketyan@gmail.com]
> Sent: Wednesday, 2 June 2010 9:38 PM
> To: users
> Subject: Re: RE: Re: RE: Rich Text Editors and Wicket
>
> yes ,I aggree with you. I think rich text editors can simplely divided
> into two categories ,heavy or light one.I just need a light one such as
> nicedit or xheditor,which using a popup fileupload button is very fit for
> people not good at computer.Displaying image from server is fit for
> website administer system.It looks like tinymce already have this
> fuction,but I don't know whether wicket had integrated it .Is fckeditor
> has a wicket integration?
>
>
> 2010-06-02
>
>
>
> wicketyan
>
>
>
> 发件人: Chris Colman
> 发送时间: 2010-06-02 16:31:53
> 收件人: users@wicket.apache.org
> 抄送:
> 主题: RE: Re: RE: Rich Text Editors and Wicket
>
> I looked at xinha before (and others) but the one killer feature of
> FckEditor that our application can't live without is the ability to
> integrate an image chooser (even if only filenames and directories are
> displayed) that displays a collection of image filenames and directories
> on the server (ie., images already uploaded, not browsing the client's
> PC) via a 'image collection' provider (implementation of a special Java
> FckEditor interface).
> I also like the ability to 'Right click' on objects in FckEditor and
> choose a variety of options. Not many others seem to support right click
> options.
> Also FckEditor brings up JavaScript popup windows (nice!) to edit
> properties instead of full strength browser popup windows with the big
> chunky borders and title (yuck!)
> >-----Original Message-----
> >From: ralf.eichinger@pixotec.de [mailto:ralf.eichinger@pixotec.de]
> >Sent: Tuesday, 1 June 2010 5:40 PM
> >To: users@wicket.apache.org
> >Subject: Re: Re: RE: Rich Text Editors and Wicket
> >
> >have a look at the powerful xinha editor (http://www.xinha.org/).
> >
> >A Wicket integration can be found here:
> >http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >For additional commands, e-mail: users-help@wicket.apache.org
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: RE: Re: RE: Rich Text Editors and Wicket
Posted by wicketyan <wi...@gmail.com>.
yes ,I aggree with you. I think rich text editors can simplely divided into two categories ,heavy or light one.I just need a light one such as nicedit or xheditor,which using a popup fileupload button is very fit for people not good at computer.Displaying image from server is fit for website administer system.It looks like tinymce already have this fuction,but I don't know whether wicket had integrated it .Is fckeditor has a wicket integration?
2010-06-02
wicketyan
发件人: Chris Colman
发送时间: 2010-06-02 16:31:53
收件人: users@wicket.apache.org
抄送:
主题: RE: Re: RE: Rich Text Editors and Wicket
I looked at xinha before (and others) but the one killer feature of
FckEditor that our application can't live without is the ability to
integrate an image chooser (even if only filenames and directories are
displayed) that displays a collection of image filenames and directories
on the server (ie., images already uploaded, not browsing the client's
PC) via a 'image collection' provider (implementation of a special Java
FckEditor interface).
I also like the ability to 'Right click' on objects in FckEditor and
choose a variety of options. Not many others seem to support right click
options.
Also FckEditor brings up JavaScript popup windows (nice!) to edit
properties instead of full strength browser popup windows with the big
chunky borders and title (yuck!)
>-----Original Message-----
>From: ralf.eichinger@pixotec.de [mailto:ralf.eichinger@pixotec.de]
>Sent: Tuesday, 1 June 2010 5:40 PM
>To: users@wicket.apache.org
>Subject: Re: Re: RE: Rich Text Editors and Wicket
>
>have a look at the powerful xinha editor (http://www.xinha.org/).
>
>A Wicket integration can be found here:
>http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Re: RE: Rich Text Editors and Wicket
Posted by ra...@pixotec.de.
have a look at the powerful xinha editor (http://www.xinha.org/).
A Wicket integration can be found here:
http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Re: Re: RE: Rich Text Editors and Wicket
Posted by ra...@pixotec.de.
I did not use it (yet), but found this improvement requirement from
the year 2007:
[CMS-794] - Inline image-upload in editor should have a configurable
maxFileSize
So I assume the answer is: yes.
Quoting wicketyan <wi...@gmail.com>:
> thanks eichinger,Is this integration contains image uploading?
>
>
> 2010-06-02
>
>
>
> wicketyan
>
>
>
> ???? ralf.eichinger
> ????? 2010-06-01 15:40:27
> ???? users
> ???
> ??? Re: Re: RE: Rich Text Editors and Wicket
>
> have a look at the powerful xinha editor (http://www.xinha.org/).
> A Wicket integration can be found here:
> http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Re: Re: RE: Rich Text Editors and Wicket
Posted by wicketyan <wi...@gmail.com>.
thanks eichinger,Is this integration contains image uploading?
2010-06-02
wicketyan
发件人: ralf.eichinger
发送时间: 2010-06-01 15:40:27
收件人: users
抄送:
主题: Re: Re: RE: Rich Text Editors and Wicket
have a look at the powerful xinha editor (http://www.xinha.org/).
A Wicket integration can be found here:
http://svn.hippocms.org/repos/hippo/hippo-ecm/trunk/addon/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Re: RE: Rich Text Editors and Wicket
Posted by nicolas melendez <nf...@gmail.com>.
Strange...
It is in google app engine, are you from china?
NM
2010/5/30 wicketyan <wi...@gmail.com>
> sorry.can't see http://www.clasificad.com.ar/clasificadoNuevo . Even I
> used proxy,there is no rich text editors,just a publica file page.
>
> 2010-05-30
>
>
>
> wicketyan
>
>
>
> 发件人: nicolas melendez
> 发送时间: 2010-05-30 02:56:14
> 收件人: users
> 抄送:
> 主题: Re: RE: Rich Text Editors and Wicket
>
> I also use use YUI editor with wicket, see:
> http://www.clasificad.com.ar/clasificadoNuevo
> <http://www.clasificad.com.ar/clasificadoNuevo>NM
> On Sat, May 29, 2010 at 7:10 AM, wicketyan <wi...@gmail.com> wrote:
> > thanks Hammer,I'm learning.
> >
> >
> > 2010-05-29
> >
> >
> >
> > wicketyan
> >
> >
> >
> > 发件人: M. Hammer
> > 发送时间: 2010-05-29 15:54:09
> > 收件人: users
> > 抄送:
> > 主题: RE: Rich Text Editors and Wicket
> >
> > Quoting Chris Colman <ch...@stepaheadsoftware.com>:
> > > Is your YUI/Wicket component/integration code publicly available or
> > > could it be?
> > I've written a blog post on the integration:
> > http://www.hammersoft.de/blog/?p=31
> > Maybe a FckEditor integration can be done in a similar manner. Keep me
> > posted if you do this, I am not entirely happy with YUI either.
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> --
> Nicolás Meléndez
> Java Software Developer
> 1) Google App Engine works:
> 1.a) http://www.clasificad.com.ar (Local free classifieds for housing,
> sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
> YUI)
> 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J +
> Applets + Wicket)
> 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
>
--
Nicolás Meléndez
Java Software Developer
1) Google App Engine works:
1.a) http://www.clasificad.com.ar (Local free classifieds for housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)
1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J +
Applets + Wicket)
2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: Re: RE: Rich Text Editors and Wicket
Posted by wicketyan <wi...@gmail.com>.
sorry.can't see http://www.clasificad.com.ar/clasificadoNuevo . Even I used proxy,there is no rich text editors,just a publica file page.
2010-05-30
wicketyan
发件人: nicolas melendez
发送时间: 2010-05-30 02:56:14
收件人: users
抄送:
主题: Re: RE: Rich Text Editors and Wicket
I also use use YUI editor with wicket, see:
http://www.clasificad.com.ar/clasificadoNuevo
<http://www.clasificad.com.ar/clasificadoNuevo>NM
On Sat, May 29, 2010 at 7:10 AM, wicketyan <wi...@gmail.com> wrote:
> thanks Hammer,I'm learning.
>
>
> 2010-05-29
>
>
>
> wicketyan
>
>
>
> 发件人: M. Hammer
> 发送时间: 2010-05-29 15:54:09
> 收件人: users
> 抄送:
> 主题: RE: Rich Text Editors and Wicket
>
> Quoting Chris Colman <ch...@stepaheadsoftware.com>:
> > Is your YUI/Wicket component/integration code publicly available or
> > could it be?
> I've written a blog post on the integration:
> http://www.hammersoft.de/blog/?p=31
> Maybe a FckEditor integration can be done in a similar manner. Keep me
> posted if you do this, I am not entirely happy with YUI either.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Nicolás Meléndez
Java Software Developer
1) Google App Engine works:
1.a) http://www.clasificad.com.ar (Local free classifieds for housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)
1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J +
Applets + Wicket)
2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: RE: Rich Text Editors and Wicket
Posted by nicolas melendez <nf...@gmail.com>.
I also use use YUI editor with wicket, see:
http://www.clasificad.com.ar/clasificadoNuevo
<http://www.clasificad.com.ar/clasificadoNuevo>NM
On Sat, May 29, 2010 at 7:10 AM, wicketyan <wi...@gmail.com> wrote:
> thanks Hammer,I'm learning.
>
>
> 2010-05-29
>
>
>
> wicketyan
>
>
>
> 发件人: M. Hammer
> 发送时间: 2010-05-29 15:54:09
> 收件人: users
> 抄送:
> 主题: RE: Rich Text Editors and Wicket
>
> Quoting Chris Colman <ch...@stepaheadsoftware.com>:
> > Is your YUI/Wicket component/integration code publicly available or
> > could it be?
> I've written a blog post on the integration:
> http://www.hammersoft.de/blog/?p=31
> Maybe a FckEditor integration can be done in a similar manner. Keep me
> posted if you do this, I am not entirely happy with YUI either.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Nicolás Meléndez
Java Software Developer
1) Google App Engine works:
1.a) http://www.clasificad.com.ar (Local free classifieds for housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)
1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J +
Applets + Wicket)
2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: RE: Rich Text Editors and Wicket
Posted by wicketyan <wi...@gmail.com>.
thanks Hammer,I'm learning.
2010-05-29
wicketyan
发件人: M. Hammer
发送时间: 2010-05-29 15:54:09
收件人: users
抄送:
主题: RE: Rich Text Editors and Wicket
Quoting Chris Colman <ch...@stepaheadsoftware.com>:
> Is your YUI/Wicket component/integration code publicly available or
> could it be?
I've written a blog post on the integration:
http://www.hammersoft.de/blog/?p=31
Maybe a FckEditor integration can be done in a similar manner. Keep me
posted if you do this, I am not entirely happy with YUI either.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Rich Text Editors and Wicket
Posted by "M. Hammer" <na...@hammer-tour.com>.
Quoting Chris Colman <ch...@stepaheadsoftware.com>:
> Is your YUI/Wicket component/integration code publicly available or
> could it be?
I've written a blog post on the integration:
http://www.hammersoft.de/blog/?p=31
Maybe a FckEditor integration can be done in a similar manner. Keep me
posted if you do this, I am not entirely happy with YUI either.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: RE: Rich Text Editors and Wicket
Posted by wicketyan <wi...@gmail.com>.
I also want to know how to process image add in wicket.can anyone write a example about adding image in wicket.the image upload generally use a frame to upload.so,the hard code way someone told me before is this way? get the request url of wicket form,and assign it to the form action of frame, and write a FileItem in wicket code?I can't solve this .actuly,image upload is unnecessary for me latter.visural-wicket-examples is well.the athor said he will develop a image upload,but not now!I will wait !
2010-05-29
wicketyan
发件人: Chris Colman
发送时间: 2010-05-29 06:18:38
收件人: users@wicket.apache.org
抄送:
主题: RE: Rich Text Editors and Wicket
YUI sure looks better than Visural. Unfortunately it still doesn't have
the nice right click/context menu that FckEditor has - have to double
click on an image to get to its properties form. It also doesn't have
all the powerful advanced styling options that FckEditor has - well not
in the examples I saw anyway.
Is your YUI/Wicket component/integration code publicly available or
could it be?
> -----Original Message-----
> From: M. Hammer [mailto:nabble@hammer-tour.com]
> Sent: Saturday, 29 May 2010 8:09 AM
> To: users@wicket.apache.org
> Subject: Re: Rich Text Editors and Wicket
>
> Quoting Chris Colman <ch...@stepaheadsoftware.com>:
> > Does anyone have experience with using Rich Text Editors in Wicket?
> I've used the TinyMCE integration from Wicketstuff
> (http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-
> tinymce),
> but then ended up using YUI Editor
> (http://developer.yahoo.com/yui/editor/), because it looks nicer :-)
>
> Generally, integrating a client-side lib (an editor, JQuery, whatever)
> with Wicket is only a matter of providing convenience wrappers. Add
> the Javascript/CSS via header contributors, and write a panel for the
> actual Javascript invocation. As long as no AJAX is involved, things
> are straight-forward. If you need to render dynamic Javascript,
> TextTemplateHeaderContributor is an invaluable tool.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Rich Text Editors and Wicket
Posted by Chris Colman <ch...@stepaheadsoftware.com>.
YUI sure looks better than Visural. Unfortunately it still doesn't have
the nice right click/context menu that FckEditor has - have to double
click on an image to get to its properties form. It also doesn't have
all the powerful advanced styling options that FckEditor has - well not
in the examples I saw anyway.
Is your YUI/Wicket component/integration code publicly available or
could it be?
> -----Original Message-----
> From: M. Hammer [mailto:nabble@hammer-tour.com]
> Sent: Saturday, 29 May 2010 8:09 AM
> To: users@wicket.apache.org
> Subject: Re: Rich Text Editors and Wicket
>
> Quoting Chris Colman <ch...@stepaheadsoftware.com>:
> > Does anyone have experience with using Rich Text Editors in Wicket?
> I've used the TinyMCE integration from Wicketstuff
> (http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-
> tinymce),
> but then ended up using YUI Editor
> (http://developer.yahoo.com/yui/editor/), because it looks nicer :-)
>
> Generally, integrating a client-side lib (an editor, JQuery, whatever)
> with Wicket is only a matter of providing convenience wrappers. Add
> the Javascript/CSS via header contributors, and write a panel for the
> actual Javascript invocation. As long as no AJAX is involved, things
> are straight-forward. If you need to render dynamic Javascript,
> TextTemplateHeaderContributor is an invaluable tool.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Rich Text Editors and Wicket
Posted by "M. Hammer" <na...@hammer-tour.com>.
Quoting Chris Colman <ch...@stepaheadsoftware.com>:
> Does anyone have experience with using Rich Text Editors in Wicket?
I've used the TinyMCE integration from Wicketstuff
(http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-tinymce),
but then ended up using YUI Editor
(http://developer.yahoo.com/yui/editor/), because it looks nicer :-)
Generally, integrating a client-side lib (an editor, JQuery, whatever)
with Wicket is only a matter of providing convenience wrappers. Add
the Javascript/CSS via header contributors, and write a panel for the
actual Javascript invocation. As long as no AJAX is involved, things
are straight-forward. If you need to render dynamic Javascript,
TextTemplateHeaderContributor is an invaluable tool.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Rich Text Editors and Wicket
Posted by Chris Colman <ch...@stepaheadsoftware.com>.
Visural looks nice but I can't see any tool bar icon for adding images.
The users of my site need to be able to add images, tables etc.,
Currently we use FckEditor with an Echo3 component but I want users to
be able to do rich text editing in the Wicket pages of our app.
> -----Original Message-----
> From: Paul Szulc [mailto:paul.szulc@gmail.com]
> Sent: Saturday, 29 May 2010 7:38 AM
> To: users@wicket.apache.org
> Subject: Re: Rich Text Editors and Wicket
>
> The one I know is from Visural project
> http://visural-wicket-examples.appspot.com/app/rich-text-editor It is
> already defined Wicket component
>
> On Fri, May 28, 2010 at 11:21 PM, Chris Colman
> <chrisc@stepaheadsoftware.com
> > wrote:
>
> > Does anyone have experience with using Rich Text Editors in Wicket?
> >
> > Javascript editors I am aware of are:
> >
> > FckEditor
> > CkEditor
> > TinyMCE
> >
> > Anyone integrated these with wicket? Any advice or opinions?
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Best regards,
> Paul Szulc
>
> http://paulszulc.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Rich Text Editors and Wicket
Posted by Paul Szulc <pa...@gmail.com>.
The one I know is from Visural project
http://visural-wicket-examples.appspot.com/app/rich-text-editor It is
already defined Wicket component
On Fri, May 28, 2010 at 11:21 PM, Chris Colman <chrisc@stepaheadsoftware.com
> wrote:
> Does anyone have experience with using Rich Text Editors in Wicket?
>
> Javascript editors I am aware of are:
>
> FckEditor
> CkEditor
> TinyMCE
>
> Anyone integrated these with wicket? Any advice or opinions?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Best regards,
Paul Szulc
http://paulszulc.wordpress.com
Rich Text Editors and Wicket
Posted by Chris Colman <ch...@stepaheadsoftware.com>.
Does anyone have experience with using Rich Text Editors in Wicket?
Javascript editors I am aware of are:
FckEditor
CkEditor
TinyMCE
Anyone integrated these with wicket? Any advice or opinions?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: custom html page
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!
You can always get session ((CastToYourSession) Session.get())
Also wicket has few built-in ways to vary the style of your application:
* https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html
* http://javathoughts.capesugarbird.com/2007/08/branding-wicket-application-take-2.html
**
Martin
2010/5/28 msalman <mo...@yahoo.com>:
>
> Hi,
>
> Is it possible for a Page to have to have customized html files depending on
> certain parameter (user, customer, etc)? I want to allow users to for a
> certain page to be able to provide their own html file for that page or
> panel. So depending on the user or customer id I can pick up the right html
> file and use that.
>
> I tried to do this in the my ResourceStreamLocator extension class but I
> can't get the session object there. I guess that is the place to set the
> html location for the application.
>
> I also found this code on the web. The problem with it is that the
> markupStream object passed in is null.
>
> @Override
> protected void onRender(MarkupStream markupStream)
> {
> markupStream.next();
> try
> {
> WebRequestCycle cycle = (WebRequestCycle)RequestCycle.get();
> ServletRequest request =
> cycle.getWebRequest().getHttpServletRequest();
> ServletResponse response =
> cycle.getWebResponse().getHttpServletResponse();
>
>
> ServletContext context =
> ((WebApplication)getApplication()).getServletContext();
> RequestDispatcher rd =
> context.getRequestDispatcher("/com/michni/wicket/....../specificsupplier_custom.html");
> rd.include(request, response);
>
> //context.getRequestDispatcher("/" + getId() +
> ".html").include(request, response);
> }
> catch (Exception e)
> {
> throw new WicketRuntimeException(e);
> }
> }
>
>
>
> Any ideas or suggestions please?
>
> Thanks,
>
> -Mohammad
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-html-page-tp2234086p2234086.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org