is Application switched to deployment-mode?

2009-01-11 Thread FlyingMustang

Hello,

I'm developing an application using Wicket 1.3.5. Now I want to set
deployment-mode for my application using -Dwicket.configuration=deployment
as a parameter for my java vm. After that, the big warning-message about
wickts's development-mode is gone. Although I see the following message in
my logs:

INFO: [Application] Started Wicket version 1.3.5 in development mode

This confuses me a little bit. Does that mean wicket is still in development
mode? And if so, how do I finally switch to deployment-mode?

I don't know if it's important: I'm using Databinder 1.2.1 in my Application
too.

Bye,
Marc
-- 
View this message in context: 
http://www.nabble.com/is-Application-switched-to-deployment-mode--tp21398415p21398415.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: is Application switched to deployment-mode?

2009-01-11 Thread FlyingMustang

OK, I solved the problem. It seems that Tomcat didn't restart correctly after
setting the variable. Sorry!!!
-- 
View this message in context: 
http://www.nabble.com/is-Application-switched-to-deployment-mode--tp21398415p21398604.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Support multiple views for different user

2009-01-11 Thread itayh

Hi,

Currently in my server anyone that logged in can add and see all the data in
the system (that he added or other people added) 
I need the ability to create different users and each user can see only the
data that he enter.
Does wicket has a build in solution for this scenario?

Thanks in advance,
Itay

-- 
View this message in context: 
http://www.nabble.com/Support-multiple-views-for-different-user-tp21398940p21398940.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: UML Diagram of Wicket structure

2009-01-11 Thread Eyal Golan
Curties,
:)
well, actually it's a very theoretical course.
The guys I do the assignments with are less experienced programmers than me.
The other thing is, that when I describe friends about Wicket, I always tell
them that if I had needed to teach OO, I would show Wicket as a good
example.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Jan 8, 2009 at 8:24 PM, Curtis Cooley
curtis.coo...@venture.com.sgwrote:

 Eyal Golan wrote:
  Actually it is. Thanks.
  I want to show it to some friends whom are learning with me a course in
 OOD.
 
 
 Hopefully whoever is teaching the course will provide a better way to
 name interfaces than starting them all with I :(



 Confidential/Privileged information may be contained in this email. If you
 are not the intended recipient, please do not copy, distribute or use it for
 any purpose, nor disclose its contents to any other person. Please notify
 the sender immediately if you receive this in error.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



Multiple Sorting in a DataTable

2009-01-11 Thread Karen Schaper
Hey,

Just wanted to repost this.  I know that's  big no -no but there were tons
of emails around my first posting and I just want to make sure it didn't get
lost in the shuffle.

Or maybe just no one has any good solutions for this.

Has anyone tried to implement multiple sorting in a data table?

I was thinking of trying to do something simliar to the filtertoolbar but
for sorting.

Thanks for any input.

Karen



 View this message in context:
 http://www.nabble.com/Multiple-Sorting-in-a-DataTable-tp21316708p2
1316708.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Support multiple views for different user

2009-01-11 Thread jcgarciam

Hi Everyone, i will use this post to introduce myself after replying to
'itayh'

You may need to create you database schema in a way you can filter the data
based on the Logged User. This is not wicket or framework specific is just a
change on data retrieval strategy.

begin
Hi, my name is Juan Carlos Garcia I'm from Dominican Republic and i've being
following wicket for almost 8 months and i must said i love it. Want to
thank the great effort is being done on this community to push such great
framework like this. I hope can contribute on this group as well as anyone
who is committed with wicket.

Thanks
end

itayh wrote:
 
 Hi,
 
 Currently in my server anyone that logged in can add and see all the data
 in the system (that he added or other people added) 
 I need the ability to create different users and each user can see only
 the data that he enter.
 Does wicket has a build in solution for this scenario?
 
 Thanks in advance,
 Itay
 
 

-- 
View this message in context: 
http://www.nabble.com/Support-multiple-views-for-different-user-tp21398940p21401547.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Multiple Sorting in a DataTable

2009-01-11 Thread Igor Vaynberg
its pretty easy to do. the headerstoolbar uses isortstatelocator
interface that the idataprovider must implement. sortabledataprovider
implements isortstatelocator in a manner where there is only one
current sort column, but its easy to write your own implementation
that keeps track of last n sort columns.

see isortabledataprovider, istorestatelocator, istorestate, and
sortabledataprovider for an example.

-igor

On Sun, Jan 11, 2009 at 9:01 AM, Karen Schaper
karen.scha...@frontiernet.net wrote:
 Hey,

 Just wanted to repost this.  I know that's  big no -no but there were tons
 of emails around my first posting and I just want to make sure it didn't get
 lost in the shuffle.

 Or maybe just no one has any good solutions for this.

 Has anyone tried to implement multiple sorting in a data table?

 I was thinking of trying to do something simliar to the filtertoolbar but
 for sorting.

 Thanks for any input.

 Karen



 View this message in context:
 http://www.nabble.com/Multiple-Sorting-in-a-DataTable-tp21316708p2
 1316708.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Getting Previous Page (Help)

2009-01-11 Thread carloc

Hi,

We have this application and each page has a wizard like functionality in
which you filll up this page first, and then go to the next page.

Each page I have has about 50k used in memory according to the
RequestLogger.

The current solution I have right now to go to previous page is to pass the
instance of the current page and store it as an instance variable in the
next page.

As I traverse from one page to another, my session usage goes up drastically
since each page I have stored has an access to its previous page.

At this rate I have sessionusage of about 300k in some situations which we
cannot afford because of a lot of users.

I looked at secondlevelache sessionstore and it has a
secondlevelcachepagemap which I wanted to use but can't because it is
private.

If I would be able to have another method of fetching the previous page,
then I can keep my session size to be about 50k per page.

What's the most efficient way of doing this?

Thanks

Carlo
-- 
View this message in context: 
http://www.nabble.com/Getting-Previous-Page-%28Help%29-tp21402283p21402283.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Getting Previous Page (Help)

2009-01-11 Thread carloc

Is This A Possible Approach

logger.debug(getPageMapEntry().getNumericId() + );
logger.debug(getCurrentVersionNumber() + );
sxiForm.add(new Link(backButton) {

@Override
public void onClick() {
// TODO Auto-generated method stub
setResponsePage(getPageMap().get(pageId, 
pageVersion));
}

});

Instead of passing the page, I passsed the page id and the page version.
That's what I used to retrieve the previous page?

Seems to work since session size remained at 60k
Before it would double in the 2nd page.


carloc wrote:
 
 Hi,
 
 We have this application and each page has a wizard like functionality in
 which you filll up this page first, and then go to the next page.
 
 Each page I have has about 50k used in memory according to the
 RequestLogger.
 
 The current solution I have right now to go to previous page is to pass
 the instance of the current page and store it as an instance variable in
 the next page.
 
 As I traverse from one page to another, my session usage goes up
 drastically since each page I have stored has an access to its previous
 page.
 
 At this rate I have sessionusage of about 300k in some situations which we
 cannot afford because of a lot of users.
 
 I looked at secondlevelache sessionstore and it has a
 secondlevelcachepagemap which I wanted to use but can't because it is
 private.
 
 If I would be able to have another method of fetching the previous page,
 then I can keep my session size to be about 50k per page.
 
 What's the most efficient way of doing this?
 
 Thanks
 
 Carlo
 

-- 
View this message in context: 
http://www.nabble.com/Getting-Previous-Page-%28Help%29-tp21402283p21402447.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FormComponent cookie persistent issue

2009-01-11 Thread Murat Yücel
Hi Serkan

I havent tried with Tomcat. Will try it and get back to you.

/Murat

2009/1/8 Serkan Camurcuoglu serkan.camurcuo...@telenity.com

 Murat have you tried it with tomcat, maybe it's jetty's bug?




 Murat Yücel wrote:

 Well i have create a jira issue on this problem. Hopefully someone  from
 the
 wicket team will
 have the time to fix this in a near future.
 https://issues.apache.org/jira/browse/WICKET-2011

 /Murat

 2009/1/7 jWeekend jweekend_for...@cabouge.com



 Murat,

 I tried (using the Start class) as soon as you sent your quickstart and
 witnessed the same result you did.
 I have not looked into the reason it behaves as it does or differently
 with
 a non-root context.

 Regards - Cemal
 http://www.jWeekend.com jWeekend



 Murat Yücel-2 wrote:


 Hi Serkan

 I am using the Start.java located in the test folder to startup the
 project.
 The context path is removed there.
 When I add a context path, then it is working fine. Both cookies is
 created
 with path /myproject.

 But the problem exist if you remove the context path. This is the way i
 run
 it on my server and i guess that
 this should also work for wicket. Can you confirm that you have the same
 problem when removing the context
 path.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com



 is your application deployed to the root context (e.g. / ) ? Because


 your


 working cookie path is / while the cookie path that is not working is
 something like /homepage/wicket:interface/:0: . In my setup (I'm
 using
 the quickstart project that you sent) the path of my cookie is always
 /myproject which is the context path of the application. Can you repeat
 the
 same behavior using your own quickstart project? I suggest you to use
 wireshark or live http headers firefox plugin to check the http headers
 to
 see what's going on..




 Murat Yücel wrote:



 Hi Serkan

 I must have seen wrong before. I am getting the same thing as you have
 described. The expire date is one month in the future.
 The only difference is in the path variable. If you clear your cookies
 and
 type something in the input fields when mount is enabled.
 Are you then able to see them again when you press the login button?

 I have attached some screenshots of the cookie and the webpage I see
 with
 and without mount.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto:
 serkan.camurcuo...@telenity.com


   In my case (when using mounted home page), when setting cookies,
   the expire time is automatically set as one month from current
   date, and when clearing cookies the expire time is it is set as
   01.01.1970.. It's really strange that the expire time is current
   time on your system..




   Murat Yücel wrote:

   Hi Serkan

   I am using firefox 3.1 beta2, but i dont think that this is a
   browser
   related issue, because i am seeing the same behavior in IE7.
   The cookies are created for both FF and IE. The problem is
   that they get a
   expire date set to current time, which means that they
   are not available anymore. If i remove the mount they will get
   a expire date
   in the future and the typed value will stay in the input
   field.

   For example with mount i type admin in the first input field
   and password in
   the second. Press the login link and i see that the
   input fields are reset. If i remove the mount and do the same,
   admin and
   password will stay in the input fields.

   /Murat

   2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com
   mailto:serkan.camurcuo...@telenity.com


   Hi Murat,
   It seems to work both ways in my setup. I'm using Firefox
   3.0. It
   successfully saves the username and password when I check
   the remember me
   checkbox, and clears them when I uncheck it. Did you check
   the host, path
   and the values of the cookies in your browser?




   Murat Yücel wrote:


   Hi again

   Did anyone had the time to look at the attached project?
   Are you guys seeing the same behaviour?

   /Murat

   2008/12/31 Murat Yücel kodeperke...@gmail.com
   mailto:kodeperke...@gmail.com




   Hi Cemal

   Thanks for the response. I have attached the


 project.


   If you uncomment this line:
   mountBookmarkablePage(homepage, HomePage.class);

   in WicketApplication.java, then you can see the
   difference in the
   behaviour.

   /Murat

   2008/12/31 jWeekend jweekend_for...@cabouge.com
   mailto:jweekend_for...@cabouge.com





   Murat,

   It is OK, just delete the target folder and
   zip it up before 

Newbie IMG tag pointing context root issue

2009-01-11 Thread Steve Viens
I'm a newbie too  but I'm having the same problem without resolution 
(Wicket 1.3.5).  I'd like to simply include the image from the context 
root.  After reading the archive below...


http://www.nabble.com/Newbie-IMG-question-td20501647.html

...I believe that there isn't supposed to be anthing for me to do.  If I 
want to include the image from the web application's context root I 
shouldn't have to do anything. Anyone else had this happen to them?  Am 
I missing something obvious?



The Index.html page looks like this

html
head
titleHelloWicketWorld/title
meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
link rel=stylesheet href=styles/drumbeat.css/
/head
body
img src=images/logo.gif /br
span wicket:id=messageMessage goes here/span
/body
/html


The rendered Index.html page looks like this (notice the ../ prefix to 
the image and css files)


html
head
titleHelloWicketWorld/title
meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
link rel=stylesheet href=../styles/drumbeat.css/
/head
body
img src=../images/logo.gif/br
span wicket:id=messageWicket, Wicket World!/span
/body
/html


The Index.java default constructor looks like this.

public Index() {
  add(new Label(message, Wicket, Wicket World!));
}


And the web.xml filter mapping looks like this.

filter
  filter-nameDrumbeatApplication/filter-name
  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
  init-param
param-nameapplicationClassName/param-name
   
param-valuenet.viens.drumbeat.markup.DrumbeatApplication/param-value

  /init-param
  init-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
  /init-param
/filter

filter-mapping
  filter-nameDrumbeatApplication/filter-name
  url-pattern/*/url-pattern
/filter-mapping

Steve


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Get all sessions

2009-01-11 Thread Eunice

Hi Jonathan and Peter, thanks alot for your reply, i tried to get the
sessions by using the

IRequestLogger as suggest by Jonathan . It do really helps.

IRequestLogger requestLogger = Application.get().getRequestLogger();
SessionData[] sessions= requestLogger.getLiveSessions();
System.out.println(The number of Live Sessions in my application is
[+sessions.length+]);





Here is my second question, let say there are 2 sessions is currently log in
into my application.


session.getSessionId()  == [bm1pgdr1y9hf]
session.getSessionId()  == [198y9m0etdvpj]


When the first user  [bm1pgdr1y9hf] login, i want to update the page to show
'Logged on users:1'
in [bm1pgdr1y9hf] 's homepage.

When the second user   [198y9m0etdvpj] login, i want to update the page to
show 'Logged on users:2'
in both [bm1pgdr1y9hf]  and [198y9m0etdvpj] 's homepage.

How can I update [bm1pgdr1y9hf] 's homepage after the second user 
[198y9m0etdvpj]  login?

Thanks alot again for your replies 

 


Peter Ertl-3 wrote:
 
 implement javax.servlet.http.HttpSessionListener
 
 Am 09.01.2009 um 08:07 schrieb Eunice:
 

 Hi,

 Is there any methods or functions in wicket that can give me

 numbers of users/sessions that is currently active and viewing/ 
 opening a
 page?

 I've been googling and read on the API, still cannot get any clues and
 unable to work it out..

 Can i get number of sessions from my application by using  
 ISessionStore or

 HttpSessions, since the session will be keep in HttpSessions..

 I do really appreciate your reply..

 Eunice
 -- 
 View this message in context:
 http://www.nabble.com/Get-all-sessions-tp21367229p21367229.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Get-all-sessions-users-for-a-web-application-tp21367229p21407641.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Resource download - How to forward to resource?

2009-01-11 Thread Trevor Campbell
I am having trouble working out how to download a dynamically generated 
file.


I have a simple form that captures and number of pieces of information 
and then generates a piece of text that I want to send to the user as a 
text file download.


The form is a standard Form in a page extending WebPage.

Following the Upload/Download page in the wiki, I have created a resouce 
extending DynamicWebResource, but cannot see how to redirect to it.


I would normally just do a setResponsePage(new MyPage(dshs)) but that 
doesn't work as the resource is not a Page.


How do I redirect to send My resource?  (I don't want to store the file 
and make the user click a link and all that stuff)


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: flash with resource

2009-01-11 Thread tbt


tbt wrote:
 
 Hi
 
 I am using flash in my web application and currently using the example
 given at
 http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicket-application.html
 
 This works fine but my swf files are stored in a database and when
 displayed now is converted back into a swf file and stored in a temperory
 folder on the server. Then the image path is given to the swf file as
 provided in the example. But I would like to make this more efficient and
 like to pass the swf file stored in the db as a 'Resource'. I currently do
 this with the image files stored in the database like
 
 BlobImageResource blobImageResource = new BlobImageResource()
 {
   @Override
   protected Blob getBlob() 
   {
   return images.getImageFile();
   }
 };  
 Image uploadImage = new Image(uploadImage,blobImageResource);
 
 to display the images in the webpage.
 
 How can I do something similar with the 'ShockWaveComponent' class so that
 a 'Resource' can be passed as a constructor parameter
 
 Thanks
 
 

Hi

I came up with the following flash component to display an swf file stored
in a database. It is attached above. 
http://www.nabble.com/file/p21408684/FlashComponent.txt FlashComponent.txt 

The example given below was used to code this flash component
http://cwiki.apache.org/WICKET/how-to-display-a-flash-movie-from-a-byte-array.html

The following class was coded by Robert Mattler which reads flash data
stored in a file.

public class FlashComponent extends WebMarkupContainer implements
IResourceListener {

int width;
int height;
String fileName;

public FlashComponent(String id, int width, int height, String fileName)
{
super(id);
this.width = width;
this.height = height;
this.fileName = fileName;
}

public void onResourceRequested() {

getRequestCycle().setRequestTarget(new IRequestTarget() {

public void respond(RequestCycle requestCycle) {

try {
   
requestCycle.getResponse().getOutputStream().write(getFlashByteArray());
} catch (IOException e) {
e.printStackTrace();
}
}

public void detach(RequestCycle requestCycle) {
// TODO Auto-generated method stub
}
});

}

protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag) {

StringBuffer flashBuffer = new StringBuffer();

// in the following, we will append all the necessary body tags of
flash
// markup

flashBuffer.append();
flashBuffer.append(embed src=\);
flashBuffer.append(urlFor(IResourceListener.INTERFACE));
flashBuffer.append(\ width=\);
flashBuffer.append(width);
flashBuffer.append(\ height=\);
flashBuffer.append(height);


replaceComponentTagBody(markupStream, openTag, flashBuffer);

}

protected byte[] getFlashByteArray() {

try {
File inputFile = new File(fileName);
InputStream inStream = new FileInputStream(inputFile);

if (inStream != null) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
Streams.copy(inStream, out);
return out.toByteArray();
}

   

return new byte[0];


   
} catch (IOException e) {
throw new WicketRuntimeException(Error while reading flash
data, e);
}

}

  

}

additional comments and suggestions regarding these components are welcome.
It would also be great to have a built in wicket flash component like
'Image' which has many constructors so that users could pass the filename,
width, height or even a 'Resource' as a parameter.

Thanks
-- 
View this message in context: 
http://www.nabble.com/flash-with-resource-tp20698407p21408684.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Resource download - How to forward to resource? Solved

2009-01-11 Thread Trevor Campbell

Trevor Campbell wrote:
I am having trouble working out how to download a dynamically 
generated file.


I have a simple form that captures and number of pieces of information 
and then generates a piece of text that I want to send to the user as 
a text file download.


The form is a standard Form in a page extending WebPage.

Following the Upload/Download page in the wiki, I have created a 
resouce extending DynamicWebResource, but cannot see how to redirect 
to it.


I would normally just do a setResponsePage(new MyPage(dshs)) but 
that doesn't work as the resource is not a Page.


How do I redirect to send My resource?  (I don't want to store the 
file and make the user click a link and all that stuff)


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


I was able to solve my issue by ignoring all the stuff in the wiki about 
upload/download and just doing the following


   setRedirect(false);
   WebResponse response = (WebResponse) getResponse();
   response.setAttachmentHeader(nyFile.txt);
   response.setContentLength(myText.length());
   response.setLastModifiedTime(Time.now());
   response.setContentType(text/plain);
   response.write(myText);
   response.close();


I am not sure if it is the most elegant but it works for me.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Newbie IMG tag pointing context root issue

2009-01-11 Thread Peter Thomas
On Mon, Jan 12, 2009 at 8:15 AM, Steve Viens st...@viens.net wrote:

 I'm a newbie too  but I'm having the same problem without resolution
 (Wicket 1.3.5).  I'd like to simply include the image from the context root.
  After reading the archive below...

 http://www.nabble.com/Newbie-IMG-question-td20501647.html

 ...I believe that there isn't supposed to be anthing for me to do.  If I
 want to include the image from the web application's context root I
 shouldn't have to do anything. Anyone else had this happen to them?  Am I
 missing something obvious?


For e.g. when you have a mix of pages with bookmarkable URLs - you can't
predict relative paths.  I think best practice is to use ContextImage.
Example usage:

HTML: img wicket:id=logo/
Java: add(new ContextImage(logo, new Model(images/logo.gif)));




 The Index.html page looks like this

 html
 head
 titleHelloWicketWorld/title
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
 link rel=stylesheet href=styles/drumbeat.css/
 /head
 body
 img src=images/logo.gif /br
 span wicket:id=messageMessage goes here/span
 /body
 /html


 The rendered Index.html page looks like this (notice the ../ prefix to the
 image and css files)

 html
 head
 titleHelloWicketWorld/title
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1
 link rel=stylesheet href=../styles/drumbeat.css/
 /head
 body
 img src=../images/logo.gif/br
 span wicket:id=messageWicket, Wicket World!/span
 /body
 /html


 The Index.java default constructor looks like this.

 public Index() {
  add(new Label(message, Wicket, Wicket World!));
 }


 And the web.xml filter mapping looks like this.

 filter
  filter-nameDrumbeatApplication/filter-name
  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
  init-param
param-nameapplicationClassName/param-name
   param-valuenet.viens.drumbeat.markup.DrumbeatApplication/param-value
  /init-param
  init-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
  /init-param
 /filter

 filter-mapping
  filter-nameDrumbeatApplication/filter-name
  url-pattern/*/url-pattern
 /filter-mapping

 Steve


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Support multiple views for different user

2009-01-11 Thread Swanthe Lindgren

Have a look at the sign in exampels at http://www.wicketstuff.org/wicket13/

//Swanthe

itayh wrote:

Hi,

Currently in my server anyone that logged in can add and see all the data in
the system (that he added or other people added) 
I need the ability to create different users and each user can see only the

data that he enter.
Does wicket has a build in solution for this scenario?

Thanks in advance,
Itay

  




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org