popup don't be closed with close link

2013-05-15 Thread Mehmet.Kaplankiran
Hi all,

I want to close the (help) popup with keyboard. Bud it isn't possible.
the close link in HelpPage deleted the content of the popup bud tthe popup 
don't be closed.
can you help me please by this problem?

Thanks !


TBEditpage.html:   //
td wicket:id=bmot_o class=berechnungsmotiva href=# 
tabindex=-1 wicket:id=helpBM/a/td

TBEditpage.java:


header.add(helpLink(help, berechnungsmotiv));

private AjaxLink helpLink(final String id, final String helpKey)
  {
return HelpPage.link(id, new Model(helpKey), popupPage);
  }


HelpPage.html:
body
wicket:extend
  div id=page
div class=content wicket:id=content/div
a wicket:id = close href=#close/a
  /div
/wicket:extend
/body

HelpPage.java
-
...
 public HelpPage(final String helpKey)
 {
  //Konstruktor
  String text = ...
  ...
  add(contentLabel(content, text));
  add(new PopupCloseLink(close));
}
...
  public static AjaxLink link(final String id, final String key, final 
ModalWindow popup)
  {
return link(id, new Model(key), popup);
  }




Error Wicket Application in SAP NetWeaver Application Server

2012-12-19 Thread Mehmet.Kaplankiran
Hi,

when I invoke Java Web Application  (deployed in SAP NetWeaver Application 
Server 7.30)  by Browser there is an error message in the Application Server.
it's run in Jetty-Server without error

Can anybody please tell me why this occurs?

#2.#2012 12 19 
12:08:55:484#+0100#Error#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#
com.sap.ASJ.web.000137##.de/PSLLeman#CA7D780B021D772D#339241504#.de/PSLLeman#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#0##CF1B997D49C911E2AEA80205A436#cf1b997d49c911e2aea80205a436#cf1b997d49c911e2aea80205a436#0#Thread[HTTP
 Worker [@1785700907],5,Dedicated_Application_Thread]#Plain##
Cannot process an HTTP request to servlet [default] in [leman] web application.
[EXCEPTION]
com.sap.engine.services.servlets_jsp.server.exceptions.WebServletException: 
com.sap.ASJ.web.000608 (Failed in component: 
org.apache.wicket.protocol.http.WicketFilter@83f2a58, 
java.lang.RuntimeException: dependencies have already been setup) 
Initialization of filter [{2}] failed. Check init() method of the filter. Error 
is: [{3}]
at 
com.sap.engine.services.servlets_jsp.server.application.WebComponents.reinstantiateFilter(WebComponents.java:1299)
at 
com.sap.engine.services.servlets_jsp.server.application.WebComponents.getFilter(WebComponents.java:1204)
at 
com.sap.engine.services.servlets_jsp.server.application.ApplicationContext.instantiateFilterChain(ApplicationContext.java:1159)
at 
com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:412)
at 
com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at 
com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at 
com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at 
com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at 
com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at 
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at 
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at 
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at 
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at 
com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at 
com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at 
com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
at 
com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
at 

Different browsers behavior iframe

2011-01-19 Thread Mehmet.Kaplankiran
Hi,

HTML:
iframe wicket:id=myFile border=1 width=900px height=400px/iframe

I have the following behavior in Internet Explorer (v. 6.0)  and Firefox .

Firefox: PDF and JPG is embedded. zip, doc, .. is not embedded but opened with 
appropriate program.
Internet Explorer: PDF, JPG, doc to be embedded. Zip file can not be read.

can someone help me why a Zip File in Internet Explorer can not be read.

Thanks

Mehmet





AW: Different browsers behavior iframe

2011-01-19 Thread Mehmet.Kaplankiran
I can download a zip document from the Internet with InternetExplorer and can 
read it. 
But with my wicket application (see html-code with iframe tag), I can not read 
a zip document with InternetExplorer. 

-Ursprüngliche Nachricht-
Von: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] 
Gesendet: Mittwoch, 19. Januar 2011 14:35
An: users@wicket.apache.org
Betreff: Re: Different browsers behavior iframe

Probably better asked here:

http://social.answers.microsoft.com/Forums/en-US/InternetExplorer/threads

On Wed, Jan 19, 2011 at 2:28 PM,  mehmet.kaplanki...@t-systems.com wrote:
 Hi,

 HTML:
 iframe wicket:id=myFile border=1 width=900px 
 height=400px/iframe

 I have the following behavior in Internet Explorer (v. 6.0)  and Firefox .

 Firefox: PDF and JPG is embedded. zip, doc, .. is not embedded but opened 
 with appropriate program.
 Internet Explorer: PDF, JPG, doc to be embedded. Zip file can not be read.

 can someone help me why a Zip File in Internet Explorer can not be read.

 Thanks

 Mehmet







--
Become a Wicket expert, learn from the best: http://wicketinaction.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



AW: Different browsers behavior iframe

2011-01-19 Thread Mehmet.Kaplankiran

public abstract class EbaFilePanel extends Panel
{
private final SetString validMimeTypes = new HashSetString();

public EbaFilePanel(String id)
{
super(id);
addValidMimeType(application/pdf);
addValidMimeType(image/jpeg);
addValidMimeType(application/x-zip-compressed);
addValidMimeType(TGZ);
addValidMimeType(application/msword);
addValidMimeType(application/vnd.ms-excel);
setOutputMarkupPlaceholderTag(true);
add(new DocumentInlineFrame(myFile, new EbaFileResource()
{
@Override
protected EbaFile getFile()
{
return getEbaFile();
}
}));
}

public void addValidMimeType(String mimeType)
{
Args.notEmpty(mimeType, mimeType);
validMimeTypes.add(mimeType);
}

protected abstract EbaFile getEbaFile();

@Override
public boolean isVisible()
{
EbaFile file = getEbaFile();

if (file == null)
return false;

return isValidMimeType(file.getMimeType());
}

public boolean isValidMimeType(String mimeType)
{
return validMimeTypes.contains(mimeType);
}
}

 

-Ursprüngliche Nachricht-
Von: Altuğ Bilgin Altıntaş [mailto:alt...@gmail.com] 
Gesendet: Mittwoch, 19. Januar 2011 16:17
An: users@wicket.apache.org
Betreff: Re: Different browsers behavior iframe

Hi,

Wicket code dees something special ? If yes then please paste it.



2011/1/19 mehmet.kaplanki...@t-systems.com

 I can download a zip document from the Internet with InternetExplorer 
 and can read it.
 But with my wicket application (see html-code with iframe tag), I can 
 not read a zip document with InternetExplorer.

 -Ursprüngliche Nachricht-
 Von: Martijn Dashorst [mailto:martijn.dasho...@gmail.com]
 Gesendet: Mittwoch, 19. Januar 2011 14:35
 An: users@wicket.apache.org
 Betreff: Re: Different browsers behavior iframe

 Probably better asked here:

 http://social.answers.microsoft.com/Forums/en-US/InternetExplorer/thre
 ads

 On Wed, Jan 19, 2011 at 2:28 PM,  mehmet.kaplanki...@t-systems.com
 wrote:
  Hi,
 
  HTML:
  iframe wicket:id=myFile border=1 width=900px
  height=400px/iframe
 
  I have the following behavior in Internet Explorer (v. 6.0)  and 
  Firefox
 .
 
  Firefox: PDF and JPG is embedded. zip, doc, .. is not embedded but 
  opened
 with appropriate program.
  Internet Explorer: PDF, JPG, doc to be embedded. Zip file can not be
 read.
 
  can someone help me why a Zip File in Internet Explorer can not be read.
 
  Thanks
 
  Mehmet
 
 
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.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




--
*Altuğ*
*www.kodcu.com* http://www.kodcu.com**

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



AW: panel can not be refreshed

2010-11-11 Thread Mehmet.Kaplankiran
Can someone help me?
When the constructor DocEditPage is called, the variables file, file name and 
content type are null. These variables set to be later. But the panel is not 
refreshed. 

-Ursprüngliche Nachricht-
Von: Kaplankiran, Mehmet 
Gesendet: Mittwoch, 10. November 2010 13:09
An: users@wicket.apache.org
Betreff: panel can not be refreshed

Hello,

I have implemented iframe and can view documents. Unfortunately, only in the 
class MyPdfResource hard-coded filename (example: private string filename = 
test.pdf;) can be displayed.
The files can not be refreshed. I hope someone can help me.

greetings, Mehmet

HTML:
div wicket:id=mypdf border=1 width=900px height=400px/div

++ class DocEditPage 
++ +
++ 
public class DocEditPage extends MainTemplate {

private byte[] file;
private String fileName;
private String contentType;

...
public DocEditPage(PageParameters params)
{
...
add(renderFileContent(mypdf));
}
...

private MyPdfPanel renderFileContent(String id)
{
return new MyPdfPanel(id, getRenderFileContentModel(), 
getContentTypeModel(), getFileNameModel);
}
...
private IModel getRenderFileContentModel()
{

return new AbstractReadOnlyModel()
{
@Override
public Object getObject()
{
return file;
}
};
}

private IModel getContentTypeModel()
{
return new AbstractReadOnlyModel()
{
@Override
public Object getObject()
{
return contentType;
}
};
}

private IModel getFileNameModel()
{
return new AbstractReadOnlyModel()
{
@Override
public Object getObject()
{
return fileName;
}
};
}

...

private DISTree disTree(String id)
{
return new DISTree(id)
{
@Override
public void selectNode(AjaxRequestTarget target, 
DISTreeNode node)
{
//set file and contentType;
...
DocEditPage.this.contentType = 
content.getContentType();
DocEditPage.this.file = content.getOrbLk();
}
}
}

}

++ class MyPdfPanel 
++ +
++ 
public class MyPdfPanel extends Panel
{

public MyPdfPanel(String id, IModel fileContentModel, IModel 
fileNameModel, IModel contentTypeModel)
{
//super(id, fileContentModel);
super(id);

file = (byte[]) fileContentModel.getObject();
String fileName =  (String) fileNameModel.getObject();
String contentType = (String) contentTypeModel.getObject();
setRenderBodyOnly(true);
add(new DocumentInlineFrame(mypdf, new MyPdfResource(file, 
contentType, fileName)));
}

}

++ class MyPdfResource 
++ +
++ 
public class MyPdfResource extends DynamicWebResource {
private static final long serialVersionUID = 1L; ...
private byte[] file;
private String contentType = application/pdf;
private String fileName = test.pdf; ...
public MyPdfResource(byte[] file, String contenttype, String filename)
{
if (file != null)
this.file = file;
if (contenttype != null  !.equalsIgnoreCase(contenttype))
contentType = contenttype;
if (filename != null  !.equalsIgnoreCase(filename))
fileName = filename;
}
...
}



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



AW: panel can not be refreshed

2010-11-11 Thread Mehmet.Kaplankiran
The code is also from this link. It works if filename and content type is hard 
coded. (See my email from yesterday). But at runtime I can not view other file. 

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Donnerstag, 11. November 2010 09:29
An: users@wicket.apache.org
Betreff: Re: panel can not be refreshed

The approach described in [1] used to work for me some time ago.

Regards,

Ernesto

1-https://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html

On Thu, Nov 11, 2010 at 9:19 AM,  mehmet.kaplanki...@t-systems.com wrote:
 Can someone help me?
 When the constructor DocEditPage is called, the variables file, file name and 
 content type are null. These variables set to be later. But the panel is not 
 refreshed.

 -Ursprüngliche Nachricht-
 Von: Kaplankiran, Mehmet
 Gesendet: Mittwoch, 10. November 2010 13:09
 An: users@wicket.apache.org
 Betreff: panel can not be refreshed

 Hello,

 I have implemented iframe and can view documents. Unfortunately, only in the 
 class MyPdfResource hard-coded filename (example: private string filename = 
 test.pdf;) can be displayed.
 The files can not be refreshed. I hope someone can help me.

 greetings, Mehmet

 HTML:
 div wicket:id=mypdf border=1 width=900px height=400px/div

 ++ class DocEditPage
 ++ +
 ++ 
 public class DocEditPage extends MainTemplate {

        private byte[] file;
        private String fileName;
        private String contentType;

 ...
        public DocEditPage(PageParameters params)
        {
                ...
                add(renderFileContent(mypdf));
        }
 ...

        private MyPdfPanel renderFileContent(String id)
        {
                return new MyPdfPanel(id, getRenderFileContentModel(), 
 getContentTypeModel(), getFileNameModel);
        }
 ...
        private IModel getRenderFileContentModel()
        {

                return new AbstractReadOnlyModel()
                {
                       �...@override
                        public Object getObject()
                        {
                                return file;
                        }
                };
        }

        private IModel getContentTypeModel()
        {
                return new AbstractReadOnlyModel()
                {
                       �...@override
                        public Object getObject()
                        {
                                return contentType;
                        }
                };
        }

        private IModel getFileNameModel()
        {
                return new AbstractReadOnlyModel()
                {
                       �...@override
                        public Object getObject()
                        {
                                return fileName;
                        }
                };
        }

 ...

        private DISTree disTree(String id)
        {
                return new DISTree(id)
                {
                       �...@override
                        public void selectNode(AjaxRequestTarget 
 target, DISTreeNode node)
                        {
                                //set file and contentType;
                                ...
                                DocEditPage.this.contentType = 
 content.getContentType();
                                DocEditPage.this.file = 
 content.getOrbLk();
                        }
                }
        }

 }

 ++ class MyPdfPanel
 ++ +
 ++ 
 public class MyPdfPanel extends Panel
 {

        public MyPdfPanel(String id, IModel fileContentModel, IModel 
 fileNameModel, IModel contentTypeModel)
        {
                //super(id, fileContentModel);
                super(id);

                file = (byte[]) fileContentModel.getObject();
                String fileName =  (String) fileNameModel.getObject();
                String contentType = (String) 
 contentTypeModel.getObject();
                setRenderBodyOnly(true);
                add(new DocumentInlineFrame(mypdf, new 
 MyPdfResource(file, contentType, fileName)));
        }

 }

 ++ class MyPdfResource
 ++ +
 ++ 
 public class MyPdfResource extends DynamicWebResource {
        private static final long serialVersionUID = 1L; ...
        private byte[] file;
        private String contentType = application/pdf;
        private String fileName = test.pdf; ...
        public MyPdfResource(byte[] file, String contenttype, String 
 filename)
        {
                if (file != null)
                        this.file = file;
                

panel can not be refreshed

2010-11-10 Thread Mehmet.Kaplankiran
Hello,

I have implemented iframe and can view documents. Unfortunately, only in the 
class
MyPdfResource hard-coded filename (example: private string filename = 
test.pdf;) can be displayed.
The files can not be refreshed. I hope someone can help me.

greetings, Mehmet

HTML:
div wicket:id=mypdf border=1 width=900px height=400px/div

++ class DocEditPage 
+
public class DocEditPage extends MainTemplate
{

private byte[] file;
private String fileName;
private String contentType;

...
public DocEditPage(PageParameters params)
{
...
add(renderFileContent(mypdf));
}
...

private MyPdfPanel renderFileContent(String id)
{
return new MyPdfPanel(id, getRenderFileContentModel(), 
getContentTypeModel(), getFileNameModel);
}
...
private IModel getRenderFileContentModel()
{

return new AbstractReadOnlyModel()
{
@Override
public Object getObject()
{
return file;
}
};
}

private IModel getContentTypeModel()
{
return new AbstractReadOnlyModel()
{
@Override
public Object getObject()
{
return contentType;
}
};
}

private IModel getFileNameModel()
{
return new AbstractReadOnlyModel()
{
@Override
public Object getObject()
{
return fileName;
}
};
}

...

private DISTree disTree(String id)
{
return new DISTree(id)
{
@Override
public void selectNode(AjaxRequestTarget target, 
DISTreeNode node)
{
//set file and contentType;
...
DocEditPage.this.contentType = 
content.getContentType();
DocEditPage.this.file = content.getOrbLk();
}
}
}

}

++ class MyPdfPanel 
+
public class MyPdfPanel extends Panel
{

public MyPdfPanel(String id, IModel fileContentModel, IModel 
fileNameModel, IModel contentTypeModel)
{
//super(id, fileContentModel);
super(id);

file = (byte[]) fileContentModel.getObject();
String fileName =  (String) fileNameModel.getObject();
String contentType = (String) contentTypeModel.getObject();
setRenderBodyOnly(true);
add(new DocumentInlineFrame(mypdf, new MyPdfResource(file, 
contentType, fileName)));
}

}

++ class MyPdfResource 
+
public class MyPdfResource extends DynamicWebResource
{
private static final long serialVersionUID = 1L;
...
private byte[] file;
private String contentType = application/pdf;
private String fileName = test.pdf;
...
public MyPdfResource(byte[] file, String contenttype, String filename)
{
if (file != null)
this.file = file;
if (contenttype != null  !.equalsIgnoreCase(contenttype))
contentType = contenttype;
if (filename != null  !.equalsIgnoreCase(filename))
fileName = filename;
}
...
}




problem with Dropdown List

2010-10-26 Thread Mehmet.Kaplankiran
Hello,

I have a problem with dropdown list.
Even if I select values in the Dropdown list (see picture below), the member 
variable docType is always null .
Unfortunately I have found no error. I hope you can see why this is.
Best regards, Mehmet



//## class DocSearchPage ##
...
public class DocSearchPage extends MainTemplate
{
private TDokar docType;
...
public DocSearchPage()
{
add(getDocTypeDropDown(docType));
...
add(executeLink(execute));
}

private TDokarDocTypeDropDownChoice getDocTypeDropDown(String id)
{
return new TDokarDocTypeDropDownChoice(id)
{
@Override
protected ListTDokar getTDokarList()
{
return getDocTypeList();
}

@Override
protected TDokar getTDokar()
{
return docType;
}

@Override
protected void setTDokar(TDokar dokart)
{
dokar = docType;
}
};
}

private Link executeLink(String id)
{
return new Link(id)
{
@Override
public void onClick()
{
disItemList = 
session().getUser().getUserDao().searchDIS(docType.getDokar(), ..);   
//docType is null
}
};
}

}

// end DocSearchPage 




## class TDokarDocTypeDropDownChoice  #
package de.t_systems.dks.eba.pages.docsearch;

import de.t_systems.dks.eba.beans.basedata.TDokar;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.IChoiceRenderer;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

import java.util.List;

public abstract class TDokarDocTypeDropDownChoice extends DropDownChoice
{

public TDokarDocTypeDropDownChoice(String id)
{
super(id);
setModel(model());
setChoices(getTDokarList());
setChoiceRenderer(RENDERER);
}

private IModel model()
{
return new Model()
{
@Override
public Object getObject()
{
return getTDokar();
}

@Override
public void setObject(Object object)
{
setTDokar((TDokar) object);
}
};
}

private static final IChoiceRenderer RENDERER = new IChoiceRenderer()
{
@Override
public Object getDisplayValue(final Object object)
{
TDokar dokar = (TDokar) object;
return dokar.getDokar();
}

@Override
public String getIdValue(final Object object, final int index)
{
return ((TDokar) object).getDokar();
}
};

protected abstract TDokar getTDokar();
protected abstract void setTDokar(TDokar tDokar);
protected abstract ListTDokar getTDokarList();
}


## TDokarDocTypeDropDownChoice  
#''



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

AW: problem with Dropdown List

2010-10-26 Thread Mehmet.Kaplankiran
sorry, in my Email is the folow method incorrect:
   @Override
protected void setTDokar(TDokar dokart)
{
dokar = docType;
}

in source cod is in code looks like this:
@Override 
protected void setTDokar(TDokar dokart)
{
docType = dokart;
}

docType is still null. 

-Ursprüngliche Nachricht-
Von: Pedro Santos [mailto:pedros...@gmail.com] 
Gesendet: Dienstag, 26. Oktober 2010 12:37
An: users@wicket.apache.org
Betreff: Re: problem with Dropdown List

Hi Mehmet, I think you need change this line:

@Override
protected void setTDokar(TDokar dokart)
{
dokar = *docType*; -- 
DocSearchPage.this.*docType
*=* *dokart;
}

anyway, why are you delegating the set/get model calls to 
TDokarDocTypeDropDownChoice ? Won't be interest only use the parameter model to 
maintain the TDokar?

On Tue, Oct 26, 2010 at 7:55 AM, mehmet.kaplanki...@t-systems.com wrote:

  Hello,
 I have a problem with dropdown list.
 Even if I select values in the Dropdown list (see picture below), the 
 member variable *docType* is always null .
 Unfortunately I have found no error. I hope you can see why this is.
 Best regards, Mehmet


 //## class DocSearchPage 
 ##
 ...
 public class DocSearchPage extends MainTemplate {
 private TDokar *docType*;
 ...
 public DocSearchPage()
 {
 add(*getDocTypeDropDown*(docType));
 ...
 add(executeLink(execute));
 }

 private *TDokarDocTypeDropDownChoice* 
 *getDocTypeDropDown*(String
 id)
 {
 return new TDokarDocTypeDropDownChoice(id)
 {
 @Override
 protected ListTDokar getTDokarList()
 {
 return getDocTypeList();
 }

 @Override
 protected TDokar getTDokar()
 {
 return *docType*;
 }

 @Override
 protected void setTDokar(TDokar dokart)
 {
 dokar = *docType*;
 }
 };
 }

 private Link executeLink(String id)
 {
 return new Link(id)
 {
 @Override
 public void onClick()
 {
 disItemList = 
 session().getUser().getUserDao().searchDIS(*docType*.getDokar(),
 ..);*//docType** **is null*
 }
 };
 }

 }

 // end DocSearchPage 
 



 ## class TDokarDocTypeDropDownChoice  
 # package de.t_systems.dks.eba.pages.docsearch;

 import de.t_systems.dks.eba.beans.basedata.TDokar;
 import org.apache.wicket.markup.html.form.DropDownChoice;
 import org.apache.wicket.markup.html.form.IChoiceRenderer;
 import org.apache.wicket.model.IModel; import 
 org.apache.wicket.model.Model;

 import java.util.List;

 public abstract class TDokarDocTypeDropDownChoice extends 
 DropDownChoice {

 public TDokarDocTypeDropDownChoice(String id)
 {
 super(id);
 setModel(model());
 setChoices(getTDokarList());
 setChoiceRenderer(RENDERER);
 }

 private IModel model()
 {
 return new Model()
 {
 @Override
 public Object getObject()
 {
 return getTDokar();
 }

 @Override
 public void setObject(Object object)
 {
 setTDokar((TDokar) object);
 }
 };
 }

 private static final IChoiceRenderer RENDERER = new
 IChoiceRenderer()
 {
 @Override
 public Object getDisplayValue(final Object object)
 {
 TDokar dokar = (TDokar) object;
 return dokar.getDokar();
 }

 @Override
 public String getIdValue(final Object object, final 
 int
 index)
 {
 return ((TDokar) object).getDokar();
 }

Which component to use for html iframe

2010-09-30 Thread Mehmet.Kaplankiran
Hi,

I would like to use html iframe tag. Example in html:
iframe src=/eba/test.pdf border=1 width=900px height=400px/iframe

My Example to use Wicket:
iframe wicket:id=iframe src=# border=1 width=900px 
height=400px/iframe

Which Wicket component can I use for iframe

Regards,

Mehmet




WG: Which component to use for html iframe

2010-09-30 Thread Mehmet.Kaplankiran
InlineFrame needs PageMap or  Page. Bud I want to render a stream or a PDF File 
in iframe-tag.

WebMarkupContainer: I need to add a wicket component to WebMarkupContainer. I 
don't know which component

--

Take a look at org.apache.wicket.markup.html.link.InlineFrame as well

2010/9/30 Altuğ Bilgin Altıntaş alt...@gmail.com

 WebMarkupContainer

 2010/9/30 mehmet.kaplanki...@t-systems.com

  Hi,
 
  I would like to use html iframe tag. Example in html:
  iframe src=/eba/test.pdf border=1 width=900px
  height=400px/iframe
 
  My Example to use Wicket:
  iframe wicket:id=iframe src=# border=1 width=900px
  height=400px/iframe
 
  Which Wicket component can I use for iframe
 
  Regards,
 
  Mehmet
 
 
 


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



AW: Which component to use for html iframe

2010-09-30 Thread Mehmet.Kaplankiran
Thanks, it works 

Regards,
Mehmet

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Donnerstag, 30. September 2010 14:39
An: users@wicket.apache.org
Betreff: Re: Which component to use for html iframe

I have created [1] long time ago. Maybe its contents are still valid for your 
use case?

Regards,

Ernesto

1-https://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html


2010/9/30  mehmet.kaplanki...@t-systems.com:
 InlineFrame needs PageMap or  Page. Bud I want to render a stream or a PDF 
 File in iframe-tag.

 WebMarkupContainer: I need to add a wicket component to 
 WebMarkupContainer. I don't know which component

 --

 Take a look at org.apache.wicket.markup.html.link.InlineFrame as well

 2010/9/30 Altuğ Bilgin Altıntaş alt...@gmail.com

 WebMarkupContainer

 2010/9/30 mehmet.kaplanki...@t-systems.com

  Hi,
 
  I would like to use html iframe tag. Example in html:
  iframe src=/eba/test.pdf border=1 width=900px
  height=400px/iframe
 
  My Example to use Wicket:
  iframe wicket:id=iframe src=# border=1 width=900px
  height=400px/iframe
 
  Which Wicket component can I use for iframe
 
  Regards,
 
  Mehmet
 
 
 


 -
 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