Re: error in heritance

2010-11-23 Thread James Carman
Create a quickstart and put it somewhere where we can get to it.
Then, someone will be able to help you easier.

On Tue, Nov 23, 2010 at 9:50 AM, Alis  wrote:
>
>  James, please help me.  Thank you!
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055573.html
> Sent from the Users forum 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: error in heritance

2010-11-23 Thread Alis

  James, please help me.  Thank you!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055573.html
Sent from the Users forum 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: error in heritance

2010-11-23 Thread James Carman
It sounds like you're just getting started with Wicket.  Why are you
"rocking the boat" already?  Just put the markup where it belongs and
don't try messing with putting it elsewhere until you truly understand
what you're doing.

On Tue, Nov 23, 2010 at 9:26 AM, Alis  wrote:
>
>   I done  the class to change the location:
>
>  public class ConfigHtmlPath extends ResourceStreamLocator {
>
>    /**
>     * Constructor class
>     */
>    public ConfigHtmlPath() {
>    }
>
>    /**
>     * Find the html resource in the dir especified
>     * @param clazz class to localize
>     * @param path path where the class is
>     * @return  the new resource stream
>     */
>    public IResourceStream locate(Class clazz, String path)
>    {
>        String location;
>        String extension = path.substring(path.lastIndexOf('.') + 1);
>        String simpleFileName = Strings.lastPathComponent(clazz.getName(),
> '.');
>        location = "/views/" + simpleFileName + "." + extension;
>        URL url;
>        try
>        {
>            // try to load the resource from the web context
>            url =
> WebApplication.get().getServletContext().getResource(location);
>            if (url != null)
>            {
>                return new UrlResourceStream(url);
>            }
>        }
>        catch (MalformedURLException e)
>        {
>            throw new WicketRuntimeException(e);
>        }
>        // resource not found; fall back on class loading
>        return super.locate(clazz, path);
>    }
> }
>
>
>  Thank you by reply! :)
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055527.html
> Sent from the Users forum 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: error in heritance

2010-11-23 Thread Alis

   I done  the class to change the location: 

  public class ConfigHtmlPath extends ResourceStreamLocator {

/**
 * Constructor class
 */
public ConfigHtmlPath() {
}

/**
 * Find the html resource in the dir especified
 * @param clazz class to localize
 * @param path path where the class is
 * @return  the new resource stream
 */
public IResourceStream locate(Class clazz, String path)
{
String location;
String extension = path.substring(path.lastIndexOf('.') + 1);
String simpleFileName = Strings.lastPathComponent(clazz.getName(),
'.');
location = "/views/" + simpleFileName + "." + extension;
URL url;
try
{
// try to load the resource from the web context
url =
WebApplication.get().getServletContext().getResource(location);
if (url != null)
{
return new UrlResourceStream(url);
}
}
catch (MalformedURLException e)
{
throw new WicketRuntimeException(e);
}
// resource not found; fall back on class loading
return super.locate(clazz, path);
}
}


 Thank you by reply! :) 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055527.html
Sent from the Users forum 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: error in heritance

2010-11-23 Thread alex shubert
take a look

In all the Wicket examples, you have to put all files in the same
package directory. This means putting the markup files and the java
files next to one another.
(c) http://wicket.apache.org/learn/examples/markupinheritance.html



--
Best regards
Alex

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



Re: error in heritance

2010-11-23 Thread alex shubert
Look, you have java classes in path like com\consisint\frontend\pages
and corresponding HTML in \FrontEnd\FrontEnd\WebContent\views

You have to have HTML files in the same folder where you compilled
classes are. Something like
$ls com\consisint\frontend\pages

ThirdByRolMain.class
ThirdByRolMain.html
ThirdByRolPolicy.class
ThirdByRolPolicy.html
Do ot and run you code again.

> The two class is in package  com.consisint.frontend.pages.
>
>  And the html in C:\programs\FrontEnd\FrontEnd\WebContent\views .

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



Re: error in heritance

2010-11-23 Thread Alis

  I´m use wicket 1.4.6!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055471.html
Sent from the Users forum 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: error in heritance

2010-11-23 Thread Alis

  
  Alex, the class Base extend Panel (ThirdByRolMain) and the class Sub
extend Base (ThirdByRolPolicy). The two class is in package
com.consisint.frontend.pages.

 And the html in C:\programs\FrontEnd\FrontEnd\WebContent\views .

 Help me please, error:

WicketMessage: Base markup of inherited markup not found. Component class:
com.consisint.frontend.pages.ThirdByRolPolicy Enable debug messages for
org.apache.wicket.util.resource.Resource to get a list of all filenames
tried.

Root cause:

org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited
markup not found. Component class:
com.consisint.frontend.pages.ThirdByRolPolicy Enable debug messages for
org.apache.wicket.util.resource.Resource to get a list of all filenames
tried.
at
org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:98)
at
org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:63)
?


 Thank you Alex!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055467.html
Sent from the Users forum 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: error in heritance

2010-11-23 Thread alex shubert
That day is too long for me.
What about html files names? May be typo or incorrect place? Or maybe
you build script does not move html to the same packet as
corresponding java classes is?

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



Re: error in heritance

2010-11-23 Thread Alis

  Hello Alex, i´m using inheritance. See the cod. html of  class extend
Panel:


 
http://www.w3.org/1999/XSL/Transform";>




 AQUI VA EL
CHILD







-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055406.html
Sent from the Users forum 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: error in heritance

2010-11-23 Thread alex shubert
Sorry, did'nt unfold your message. It looks like you forgot to insert
 in parent markup. That tags mark the place where
inherited component will be placed.

I hope I didnt miss anything now.

On 23 November 2010 15:55, alex shubert  wrote:
> replace 
> with 
>
>
> --
> Best regards
> Alex
>

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



Re: error in heritance

2010-11-23 Thread alex shubert
replace 
with 


--
Best regards
Alex

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



error in heritance

2010-11-23 Thread Alis

 Hello!i´m doing a call to the son class, and and show the error:

WicketMessage: Base markup of inherited markup not found. Component class:
com.consisint.frontend.pages.ThirdByRolPolicy Enable debug messages for
org.apache.wicket.util.resource.Resource to get a list of all filenames
tried.

Root cause:

org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited
markup not found. Component class:
com.consisint.frontend.pages.ThirdByRolPolicy Enable debug messages for
org.apache.wicket.util.resource.Resource to get a list of all filenames
tried.
at
org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:98)
at
org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:63)
at
org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55)


 The classes is:

  public  class  ThirdByRolMain extends Panel {
protected WebMarkupContainer wmc;
protected Form formThird;
protected   Object object;
protected  DataView dataView;   // data table
protected  SortableThirdProvider thirdProvider;   // data model
protected  List partAdds = new ArrayList();
protected  Label numberRowLabel;
protected  FeedbackPanel feedback;
public ThirdByRolMain(final String id,final Object object,final String
idClass, final Role role,final boolean isClient,final Policy pol){


super(id);
 System.out.println("id padree= " + id);
wmc = new WebMarkupContainer( "wmc" ) {
@Override
public boolean isTransparentResolver()
{
return true;
}};

add(wmc);
   // formThird= new Form("form");

this.object=object;
WebMarkupContainer containerDetailSearch = new
WebMarkupContainer("detailSearch");
containerDetailSearch.setOutputMarkupId(true);
add(containerDetailSearch);
}


http://www.w3.org/1999/XSL/Transform";>




 








public class ThirdByRolPolicy extends ThirdByRolMain{

private ConfirmationAnswer  isSure;
private ModalDialog dataBasicModalDialog,modalDialogSecurity;
private boolean isEmpty=true;
private ValueMap properties = new ValueMap();
private String idThirdOld="";

public ThirdByRolPolicy(final String id,final Object object,final String
idClass, final Role role,final boolean isClient,final Policy pol){

super(id, object,idClass,role, isClient, pol);
Form formThird = new Form("thirdForm");
wmc.add(formThird);

}

}



http://www.w3.org/1999/XSL/Transform";>


 




 Help me please, thank you!

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055355.html
Sent from the Users forum 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